Title: [151588] trunk/Source/WebCore
Revision
151588
Author
[email protected]
Date
2013-06-14 04:34:27 -0700 (Fri, 14 Jun 2013)

Log Message

[Qt] Map rewind and fast forward keys to match GoogleTV
https://bugs.webkit.org/show_bug.cgi?id=117634

Reviewed by Jocelyn Turcotte.

Set the same keycode for media keys rewind and fast-forward as
GoogleTV does.

* platform/qt/PlatformKeyboardEventQt.cpp:
(WebCore::windowsKeyCodeForKeyEvent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (151587 => 151588)


--- trunk/Source/WebCore/ChangeLog	2013-06-14 11:26:39 UTC (rev 151587)
+++ trunk/Source/WebCore/ChangeLog	2013-06-14 11:34:27 UTC (rev 151588)
@@ -1,3 +1,16 @@
+2013-06-14  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Map rewind and fast forward keys to match GoogleTV
+        https://bugs.webkit.org/show_bug.cgi?id=117634
+
+        Reviewed by Jocelyn Turcotte.
+
+        Set the same keycode for media keys rewind and fast-forward as
+        GoogleTV does.
+
+        * platform/qt/PlatformKeyboardEventQt.cpp:
+        (WebCore::windowsKeyCodeForKeyEvent):
+
 2013-06-13  Carlos Garcia Campos  <[email protected]>
 
         Avoid unnecessary data copies when loading subresources with DoNotBufferData option

Modified: trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp (151587 => 151588)


--- trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp	2013-06-14 11:26:39 UTC (rev 151587)
+++ trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp	2013-06-14 11:34:27 UTC (rev 151588)
@@ -499,6 +499,12 @@
         return VK_OEM_7; // case '\'': case '"': return 0xDE;
         // VK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
         // VK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
+
+    case Qt::Key_AudioRewind:
+        return 0xE3; // (E3) Android/GoogleTV: Rewind media key (Windows: VK_ICO_HELP Help key on 1984 Olivetti M24 deluxe keyboard)
+    case Qt::Key_AudioForward:
+        return 0xE4; // (E4) Android/GoogleTV: Fast forward media key  (Windows: VK_ICO_00 '00' key on 1984 Olivetti M24 deluxe keyboard)
+
         // VK_PROCESSKEY (E5) Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
         // VK_PACKET (E7) Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT,SendInput, WM_KEYDOWN, and WM_KEYUP
         // VK_ATTN (F6) Attn key
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to