diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-03-06 11:38:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-06 14:16:29 +0100 |
commit | 16e686342a4c0a8a875ff24f3d5d9bea8a9512e6 (patch) | |
tree | 52112f2789d0c13153435462d1ad7892260e71ab | |
parent | 7a2d420d6675e08dfeff2388ce579dc54d4aa88a (diff) | |
download | qtwebkit-16e686342a4c0a8a875ff24f3d5d9bea8a9512e6.tar.gz |
Set correct virtual keycode for the apostrophe key
We currently set the virtual keycode to 0 for the apostrophe key, but
it should use the same keycode as double-quote.
Task-number: QTBUG-37280
Change-Id: Ic69c3f117c3f5f2ee3b5b1a77ce1c0b173c3a456
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
-rw-r--r-- | Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp b/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp index 915c2af74..417c59d23 100644 --- a/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp +++ b/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp @@ -699,6 +699,7 @@ int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad) case Qt::Key_BraceRight: return VK_OEM_6; // case ']': case '}': return 0xDD; // VK_OEM_7 (DE) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the 'single-quote/double-quote' key + case Qt::Key_Apostrophe: case Qt::Key_QuoteDbl: return VK_OEM_7; // case '\'': case '"': return 0xDE; // VK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard. |