Title: [151494] trunk/Source/WebCore
Revision
151494
Author
[email protected]
Date
2013-06-12 04:44:33 -0700 (Wed, 12 Jun 2013)

Log Message

[Qt] Set windows key-code for multimedia keys
https://bugs.webkit.org/show_bug.cgi?id=117535

Reviewed by Jocelyn Turcotte.

Map Qt Key-events to their defined windows keycode values.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (151493 => 151494)


--- trunk/Source/WebCore/ChangeLog	2013-06-12 11:34:01 UTC (rev 151493)
+++ trunk/Source/WebCore/ChangeLog	2013-06-12 11:44:33 UTC (rev 151494)
@@ -1,3 +1,15 @@
+2013-06-12  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Set windows key-code for multimedia keys
+        https://bugs.webkit.org/show_bug.cgi?id=117535
+
+        Reviewed by Jocelyn Turcotte.
+
+        Map Qt Key-events to their defined windows keycode values.
+
+        * platform/qt/PlatformKeyboardEventQt.cpp:
+        (WebCore::windowsKeyCodeForKeyEvent):
+
 2013-06-12  Sergio Villar Senin  <[email protected]>
 
         [Soup] Use ResourceLoadPriority

Modified: trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp (151493 => 151494)


--- trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp	2013-06-12 11:34:01 UTC (rev 151493)
+++ trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp	2013-06-12 11:44:33 UTC (rev 151494)
@@ -433,13 +433,22 @@
         // VK_BROWSER_SEARCH (AA) Windows 2000/XP: Browser Search key
         // VK_BROWSER_FAVORITES (AB) Windows 2000/XP: Browser Favorites key
         // VK_BROWSER_HOME (AC) Windows 2000/XP: Browser Start and Home key
-        // VK_VOLUME_MUTE (AD) Windows 2000/XP: Volume Mute key
-        // VK_VOLUME_DOWN (AE) Windows 2000/XP: Volume Down key
-        // VK_VOLUME_UP (AF) Windows 2000/XP: Volume Up key
-        // VK_MEDIA_NEXT_TRACK (B0) Windows 2000/XP: Next Track key
-        // VK_MEDIA_PREV_TRACK (B1) Windows 2000/XP: Previous Track key
-        // VK_MEDIA_STOP (B2) Windows 2000/XP: Stop Media key
-        // VK_MEDIA_PLAY_PAUSE (B3) Windows 2000/XP: Play/Pause Media key
+
+    case Qt::Key_VolumeMute:
+        return VK_VOLUME_MUTE; // (AD) Windows 2000/XP: Volume Mute key
+    case Qt::Key_VolumeDown:
+        return VK_VOLUME_DOWN; // (AE) Windows 2000/XP: Volume Down key
+    case Qt::Key_VolumeUp:
+        return VK_VOLUME_UP; // (AF) Windows 2000/XP: Volume Up key
+    case Qt::Key_MediaNext:
+        return VK_MEDIA_NEXT_TRACK; // (B0) Windows 2000/XP: Next Track key
+    case Qt::Key_MediaPrevious:
+        return VK_MEDIA_PREV_TRACK; // (B1) Windows 2000/XP: Previous Track key
+    case Qt::Key_MediaStop:
+        return VK_MEDIA_STOP; // (B2) Windows 2000/XP: Stop Media key
+    case Qt::Key_MediaTogglePlayPause:
+        return VK_MEDIA_PLAY_PAUSE; // (B3) Windows 2000/XP: Play/Pause Media key
+
         // VK_LAUNCH_MAIL (B4) Windows 2000/XP: Start Mail key
         // VK_LAUNCH_MEDIA_SELECT (B5) Windows 2000/XP: Select Media key
         // VK_LAUNCH_APP1 (B6) Windows 2000/XP: Start Application 1 key
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to