diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-04-03 12:09:12 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-03 15:57:54 +0200 |
commit | e0a3df285293dad19abad8c787cb61e2b66d28a2 (patch) | |
tree | acead5db1b91f36438ea1f16d1ef23335bf470bb | |
parent | 8479e14b9d8a5478dc69100fab9f4aefa7604271 (diff) | |
download | qtwebkit-e0a3df285293dad19abad8c787cb61e2b66d28a2.tar.gz |
Fix wrong VK keycodes
The two paren keycodes were reversed and the exclam key was not mapped
Task-number: QTBUG-38031
Change-Id: I5614ed85a4c99792ca684bc4f1188631ccaa45d3
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rw-r--r-- | Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp b/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp index 417c59d23..8ac6e0099 100644 --- a/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp +++ b/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp @@ -525,9 +525,10 @@ int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad) case Qt::Key_Help: return VK_HELP; // (2F) HELP key case Qt::Key_0: - case Qt::Key_ParenLeft: + case Qt::Key_ParenRight: return VK_0; // (30) 0) key case Qt::Key_1: + case Qt::Key_Exclam: return VK_1; // (31) 1 ! key case Qt::Key_2: case Qt::Key_At: @@ -551,7 +552,7 @@ int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad) case Qt::Key_Asterisk: return VK_8; // (38) 8 key '*' case Qt::Key_9: - case Qt::Key_ParenRight: + case Qt::Key_ParenLeft: return VK_9; // (39) 9 key '(' case Qt::Key_A: return VK_A; // (41) A key case 'a': case 'A': return 0x41; |