You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/web_event_factory.cpp
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,8 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad)
109
109
return VK_DECIMAL; // (6E) Decimal key
110
110
case Qt::Key_Slash:
111
111
return VK_DIVIDE; // (6F) Divide key
112
+
case Qt::Key_Equal:
113
+
return VK_OEM_PLUS; // (BB) Equal key
112
114
case Qt::Key_PageUp:
113
115
return VK_PRIOR; // (21) PAGE UP key
114
116
case Qt::Key_PageDown:
@@ -376,13 +378,22 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad)
376
378
// VK_BROWSER_SEARCH (AA) Windows 2000/XP: Browser Search key
377
379
// VK_BROWSER_FAVORITES (AB) Windows 2000/XP: Browser Favorites key
378
380
// VK_BROWSER_HOME (AC) Windows 2000/XP: Browser Start and Home key
379
-
// VK_VOLUME_MUTE (AD) Windows 2000/XP: Volume Mute key
380
-
// VK_VOLUME_DOWN (AE) Windows 2000/XP: Volume Down key
381
-
// VK_VOLUME_UP (AF) Windows 2000/XP: Volume Up key
382
-
// VK_MEDIA_NEXT_TRACK (B0) Windows 2000/XP: Next Track key
383
-
// VK_MEDIA_PREV_TRACK (B1) Windows 2000/XP: Previous Track key
384
-
// VK_MEDIA_STOP (B2) Windows 2000/XP: Stop Media key
385
-
// VK_MEDIA_PLAY_PAUSE (B3) Windows 2000/XP: Play/Pause Media key
381
+
382
+
case Qt::Key_VolumeMute:
383
+
return VK_VOLUME_MUTE; // (AD) Windows 2000/XP: Volume Mute key
384
+
case Qt::Key_VolumeDown:
385
+
return VK_VOLUME_DOWN; // (AE) Windows 2000/XP: Volume Down key
386
+
case Qt::Key_VolumeUp:
387
+
return VK_VOLUME_UP; // (AF) Windows 2000/XP: Volume Up key
388
+
case Qt::Key_MediaNext:
389
+
return VK_MEDIA_NEXT_TRACK; // (B0) Windows 2000/XP: Next Track key
390
+
case Qt::Key_MediaPrevious:
391
+
return VK_MEDIA_PREV_TRACK; // (B1) Windows 2000/XP: Previous Track key
392
+
case Qt::Key_MediaStop:
393
+
return VK_MEDIA_STOP; // (B2) Windows 2000/XP: Stop Media key
394
+
case Qt::Key_MediaTogglePlayPause:
395
+
return VK_MEDIA_PLAY_PAUSE; // (B3) Windows 2000/XP: Play/Pause Media key
396
+
386
397
// VK_LAUNCH_MAIL (B4) Windows 2000/XP: Start Mail key
387
398
// VK_LAUNCH_MEDIA_SELECT (B5) Windows 2000/XP: Select Media key
388
399
// VK_LAUNCH_APP1 (B6) Windows 2000/XP: Start Application 1 key
@@ -434,6 +445,12 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad)
434
445
return VK_OEM_7; // case '\'': case '"': return 0xDE;
435
446
// VK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
436
447
// VK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
448
+
449
+
case Qt::Key_AudioRewind:
450
+
return0xE3; // (E3) Android/GoogleTV: Rewind media key (Windows: VK_ICO_HELP Help key on 1984 Olivetti M24 deluxe keyboard)
451
+
case Qt::Key_AudioForward:
452
+
return0xE4; // (E4) Android/GoogleTV: Fast forward media key (Windows: VK_ICO_00 '00' key on 1984 Olivetti M24 deluxe keyboard)
453
+
437
454
// VK_PROCESSKEY (E5) Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
438
455
// 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
0 commit comments