Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 102221) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy) |
@@ -106,7 +106,9 @@ |
void SetSavedKeyState(WPARAM vkey) { |
CHECK_LT(vkey, kBitsPerType * sizeof(g_saved_key_state)); |
- g_saved_key_state[vkey / kBitsPerType] |= 1 << (vkey % kBitsPerType); |
+ // Cache the key state only for keys blocked by UIPI. |
+ if (g_iat_orig_get_key_state(vkey) == 0) |
+ g_saved_key_state[vkey / kBitsPerType] |= 1 << (vkey % kBitsPerType); |
} |
void UnsetSavedKeyState(WPARAM vkey) { |