summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/src/android/WebInputEventFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/src/android/WebInputEventFactory.cpp')
-rw-r--r--Source/WebKit/chromium/src/android/WebInputEventFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/src/android/WebInputEventFactory.cpp b/Source/WebKit/chromium/src/android/WebInputEventFactory.cpp
index fb723223b..9bc70faca 100644
--- a/Source/WebKit/chromium/src/android/WebInputEventFactory.cpp
+++ b/Source/WebKit/chromium/src/android/WebInputEventFactory.cpp
@@ -50,7 +50,9 @@ WebKeyboardEvent WebInputEventFactory::keyboardEvent(WebInputEvent::Type type,
result.type = type;
result.modifiers = modifiers;
result.timeStampSeconds = timeStampSeconds;
- result.windowsKeyCode = WebCore::windowsKeyCodeForKeyEvent(keycode);
+ int windowsKeyCode = WebCore::windowsKeyCodeForKeyEvent(keycode);
+ result.windowsKeyCode = WebKeyboardEvent::windowsKeyCodeWithoutLocation(windowsKeyCode);
+ result.modifiers |= WebKeyboardEvent::locationModifiersFromWindowsKeyCode(windowsKeyCode);
result.nativeKeyCode = keycode;
result.unmodifiedText[0] = unicodeCharacter;
if (result.windowsKeyCode == WebCore::VKEY_RETURN) {