Commit 783b60e5 authored by jschuh@chromium.org's avatar jschuh@chromium.org

Don't cache keystate if not blocked by UIPI

BUG=94240
TEST=Input @ character in a Flash text input with a Danish keyboard
Review URL: http://codereview.chromium.org/7978050

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102278 0039d316-1c4b-4281-b951-d872f2087c98
parent 4be8f31c
......@@ -106,7 +106,9 @@ bool GetSavedKeyState(WPARAM vkey) {
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment