1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
8 * This header file defines simple key mapping between native keycode value and
10 * You must define NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX macro before include
13 * It must have two arguments, (aNativeKey, aKeyNameIndex).
14 * aNativeKey is a native keycode value.
15 * aKeyNameIndex is the widget::KeyNameIndex value.
18 // Windows (both Desktop and Metro)
19 #define KEY_MAP_WIN(aCPPKeyName, aNativeKey)
20 #define KEY_MAP_WIN_JPN(aCPPKeyName, aNativeKey)
21 #define KEY_MAP_WIN_KOR(aCPPKeyName, aNativeKey)
22 #define KEY_MAP_WIN_OTH(aCPPKeyName, aNativeKey)
24 #define KEY_MAP_COCOA(aCPPKeyName, aNativeKey)
26 #define KEY_MAP_GTK(aCPPKeyName, aNativeKey)
28 #define KEY_MAP_QT(aCPPKeyName, aNativeKey)
30 #define KEY_MAP_ANDROID(aCPPKeyName, aNativeKey)
33 // KEY_MAP_WIN() defines the mapping not depending on keyboard layout.
35 #define KEY_MAP_WIN(aCPPKeyName, aNativeKey) \
36 NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, KEY_NAME_INDEX_##aCPPKeyName)
37 // KEY_MAP_WIN_JPN() defines the mapping which is valid only with Japanese
39 #undef KEY_MAP_WIN_JPN
40 #define KEY_MAP_WIN_JPN(aCPPKeyName, aNativeKey) \
41 NS_JAPANESE_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, \
42 KEY_NAME_INDEX_##aCPPKeyName)
43 // KEY_MAP_WIN_KOR() defines the mapping which is valid only with Korean
45 #undef KEY_MAP_WIN_KOR
46 #define KEY_MAP_WIN_KOR(aCPPKeyName, aNativeKey) \
47 NS_KOREAN_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, \
48 KEY_NAME_INDEX_##aCPPKeyName)
49 // KEY_MAP_WIN_OTH() defines the mapping which is valid with neither
50 // Japanese keyboard layout nor Korean keyboard layout.
51 #undef KEY_MAP_WIN_OTH
52 #define KEY_MAP_WIN_OTH(aCPPKeyName, aNativeKey) \
53 NS_OTHER_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, \
54 KEY_NAME_INDEX_##aCPPKeyName)
55 #elif defined(XP_MACOSX)
57 #define KEY_MAP_COCOA(aCPPKeyName, aNativeKey) \
58 NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, KEY_NAME_INDEX_##aCPPKeyName)
59 #elif defined(MOZ_WIDGET_GTK)
61 #define KEY_MAP_GTK(aCPPKeyName, aNativeKey) \
62 NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, KEY_NAME_INDEX_##aCPPKeyName)
63 #elif defined(MOZ_WIDGET_QT)
65 #define KEY_MAP_QT(aCPPKeyName, aNativeKey) \
66 NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, KEY_NAME_INDEX_##aCPPKeyName)
67 #elif defined(ANDROID)
68 #undef KEY_MAP_ANDROID
69 #define KEY_MAP_ANDROID(aCPPKeyName, aNativeKey) \
70 NS_NATIVE_KEY_TO_DOM_KEY_NAME_INDEX(aNativeKey, KEY_NAME_INDEX_##aCPPKeyName)
73 /******************************************************************************
75 ******************************************************************************/
77 KEY_MAP_WIN (Alt
, VK_MENU
)
78 KEY_MAP_WIN (Alt
, VK_LMENU
)
79 KEY_MAP_WIN (Alt
, VK_RMENU
)
80 KEY_MAP_COCOA (Alt
, kVK_Option
)
81 KEY_MAP_COCOA (Alt
, kVK_RightOption
)
82 KEY_MAP_GTK (Alt
, GDK_Alt_L
)
83 KEY_MAP_GTK (Alt
, GDK_Alt_R
)
84 KEY_MAP_QT (Alt
, Qt::Key_Alt
)
85 KEY_MAP_ANDROID (Alt
, AKEYCODE_ALT_LEFT
)
86 KEY_MAP_ANDROID (Alt
, AKEYCODE_ALT_RIGHT
)
89 KEY_MAP_GTK (AltGraph
, GDK_Mode_switch
/* same as GDK_kana_switch,
90 GDK_ISO_Group_Shift and
92 // Let's treat both Level 3 shift and Level 5 shift as AltGr.
93 // And also, let's treat Latch key and Lock key as AltGr key too like
95 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level3_Shift
)
96 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level3_Latch
)
97 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level3_Lock
)
98 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level5_Shift
)
99 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level5_Latch
)
100 KEY_MAP_GTK (AltGraph
, GDK_ISO_Level5_Lock
)
101 KEY_MAP_QT (AltGraph
, Qt::Key_AltGr
)
102 KEY_MAP_QT (AltGraph
, Qt::Key_Mode_switch
)
105 KEY_MAP_WIN (CapsLock
, VK_CAPITAL
)
106 KEY_MAP_COCOA (CapsLock
, kVK_CapsLock
)
107 KEY_MAP_GTK (CapsLock
, GDK_Caps_Lock
)
108 KEY_MAP_QT (CapsLock
, Qt::Key_CapsLock
)
109 KEY_MAP_ANDROID (CapsLock
, AKEYCODE_CAPS_LOCK
)
112 KEY_MAP_WIN (Control
, VK_CONTROL
)
113 KEY_MAP_WIN (Control
, VK_LCONTROL
)
114 KEY_MAP_WIN (Control
, VK_RCONTROL
)
115 KEY_MAP_COCOA (Control
, kVK_Control
)
116 KEY_MAP_COCOA (Control
, kVK_RightControl
)
117 KEY_MAP_GTK (Control
, GDK_Control_L
)
118 KEY_MAP_GTK (Control
, GDK_Control_R
)
119 KEY_MAP_QT (Control
, Qt::Key_Control
)
120 KEY_MAP_ANDROID (Control
, AKEYCODE_CTRL_LEFT
)
121 KEY_MAP_ANDROID (Control
, AKEYCODE_CTRL_RIGHT
)
124 KEY_MAP_COCOA (Fn
, kVK_Function
)
125 KEY_MAP_ANDROID (Fn
, AKEYCODE_FUNCTION
)
128 KEY_MAP_COCOA (Meta
, kVK_Command
)
129 KEY_MAP_COCOA (Meta
, kVK_RightCommand
)
130 KEY_MAP_GTK (Meta
, GDK_Meta_L
)
131 KEY_MAP_GTK (Meta
, GDK_Meta_R
)
132 KEY_MAP_QT (Meta
, Qt::Key_Meta
)
133 KEY_MAP_ANDROID (Meta
, AKEYCODE_META_LEFT
)
134 KEY_MAP_ANDROID (Meta
, AKEYCODE_META_RIGHT
)
137 KEY_MAP_WIN (NumLock
, VK_NUMLOCK
)
138 KEY_MAP_GTK (NumLock
, GDK_Num_Lock
)
139 KEY_MAP_QT (NumLock
, Qt::Key_NumLock
)
140 KEY_MAP_ANDROID (NumLock
, AKEYCODE_NUM_LOCK
)
143 KEY_MAP_WIN (OS
, VK_LWIN
)
144 KEY_MAP_WIN (OS
, VK_RWIN
)
145 KEY_MAP_GTK (OS
, GDK_Super_L
)
146 KEY_MAP_GTK (OS
, GDK_Super_R
)
147 KEY_MAP_GTK (OS
, GDK_Hyper_L
)
148 KEY_MAP_GTK (OS
, GDK_Hyper_R
)
149 KEY_MAP_QT (OS
, Qt::Key_Super_L
)
150 KEY_MAP_QT (OS
, Qt::Key_Super_R
)
151 KEY_MAP_QT (OS
, Qt::Key_Hyper_L
)
152 KEY_MAP_QT (OS
, Qt::Key_Hyper_R
)
155 KEY_MAP_WIN (ScrollLock
, VK_SCROLL
)
156 KEY_MAP_GTK (ScrollLock
, GDK_Scroll_Lock
)
157 KEY_MAP_QT (ScrollLock
, Qt::Key_ScrollLock
)
158 KEY_MAP_ANDROID (ScrollLock
, AKEYCODE_SCROLL_LOCK
)
161 KEY_MAP_WIN (Shift
, VK_SHIFT
)
162 KEY_MAP_WIN (Shift
, VK_LSHIFT
)
163 KEY_MAP_WIN (Shift
, VK_RSHIFT
)
164 KEY_MAP_COCOA (Shift
, kVK_Shift
)
165 KEY_MAP_COCOA (Shift
, kVK_RightShift
)
166 KEY_MAP_GTK (Shift
, GDK_Shift_L
)
167 KEY_MAP_GTK (Shift
, GDK_Shift_R
)
168 KEY_MAP_GTK (Shift
, GDK_Shift_Lock
) // Let's treat as Shift key (bug 769159)
169 KEY_MAP_QT (Shift
, Qt::Key_Shift
)
170 KEY_MAP_ANDROID (Shift
, AKEYCODE_SHIFT_LEFT
)
171 KEY_MAP_ANDROID (Shift
, AKEYCODE_SHIFT_RIGHT
)
173 /******************************************************************************
175 ******************************************************************************/
177 KEY_MAP_WIN (Enter
, VK_RETURN
)
178 KEY_MAP_COCOA (Enter
, kVK_Return
)
179 KEY_MAP_COCOA (Enter
, kVK_ANSI_KeypadEnter
)
180 KEY_MAP_COCOA (Enter
, kVK_Powerbook_KeypadEnter
)
181 KEY_MAP_GTK (Enter
, GDK_Return
)
182 KEY_MAP_GTK (Enter
, GDK_KP_Enter
)
183 KEY_MAP_GTK (Enter
, GDK_ISO_Enter
)
184 KEY_MAP_GTK (Enter
, GDK_3270_Enter
)
185 KEY_MAP_QT (Enter
, Qt::Key_Return
)
186 KEY_MAP_QT (Enter
, Qt::Key_Enter
)
187 KEY_MAP_ANDROID (Enter
, AKEYCODE_ENTER
)
188 KEY_MAP_ANDROID (Enter
, AKEYCODE_NUMPAD_ENTER
)
191 KEY_MAP_WIN (Tab
, VK_TAB
)
192 KEY_MAP_COCOA (Tab
, kVK_Tab
)
193 KEY_MAP_GTK (Tab
, GDK_Tab
)
194 KEY_MAP_GTK (Tab
, GDK_KP_Tab
)
195 KEY_MAP_QT (Tab
, Qt::Key_Tab
)
196 KEY_MAP_ANDROID (Tab
, AKEYCODE_TAB
)
198 /******************************************************************************
200 ******************************************************************************/
202 KEY_MAP_WIN (Down
, VK_DOWN
)
203 KEY_MAP_COCOA (Down
, kVK_DownArrow
)
204 KEY_MAP_GTK (Down
, GDK_Down
)
205 KEY_MAP_GTK (Down
, GDK_KP_Down
)
206 KEY_MAP_QT (Down
, Qt::Key_Down
)
207 KEY_MAP_ANDROID (Down
, AKEYCODE_DPAD_DOWN
)
210 KEY_MAP_WIN (Left
, VK_LEFT
)
211 KEY_MAP_COCOA (Left
, kVK_LeftArrow
)
212 KEY_MAP_GTK (Left
, GDK_Left
)
213 KEY_MAP_GTK (Left
, GDK_KP_Left
)
214 KEY_MAP_QT (Left
, Qt::Key_Left
)
215 KEY_MAP_ANDROID (Left
, AKEYCODE_DPAD_LEFT
)
218 KEY_MAP_WIN (Right
, VK_RIGHT
)
219 KEY_MAP_COCOA (Right
, kVK_RightArrow
)
220 KEY_MAP_GTK (Right
, GDK_Right
)
221 KEY_MAP_GTK (Right
, GDK_KP_Right
)
222 KEY_MAP_QT (Right
, Qt::Key_Right
)
223 KEY_MAP_ANDROID (Right
, AKEYCODE_DPAD_RIGHT
)
226 KEY_MAP_WIN (Up
, VK_UP
)
227 KEY_MAP_COCOA (Up
, kVK_UpArrow
)
228 KEY_MAP_GTK (Up
, GDK_Up
)
229 KEY_MAP_GTK (Up
, GDK_KP_Up
)
230 KEY_MAP_QT (Up
, Qt::Key_Up
)
231 KEY_MAP_ANDROID (Up
, AKEYCODE_DPAD_UP
)
234 KEY_MAP_WIN (End
, VK_END
)
235 KEY_MAP_COCOA (End
, kVK_End
)
236 KEY_MAP_GTK (End
, GDK_End
)
237 KEY_MAP_GTK (End
, GDK_KP_End
)
238 KEY_MAP_QT (End
, Qt::Key_End
)
239 KEY_MAP_ANDROID (End
, AKEYCODE_MOVE_END
)
242 KEY_MAP_WIN (Home
, VK_HOME
)
243 KEY_MAP_COCOA (Home
, kVK_Home
)
244 KEY_MAP_GTK (Home
, GDK_Home
)
245 KEY_MAP_GTK (Home
, GDK_KP_Home
)
246 KEY_MAP_QT (Home
, Qt::Key_Home
)
247 KEY_MAP_ANDROID (Home
, AKEYCODE_MOVE_HOME
)
250 KEY_MAP_WIN (PageDown
, VK_NEXT
)
251 KEY_MAP_COCOA (PageDown
, kVK_PageDown
)
252 KEY_MAP_GTK (PageDown
, GDK_Page_Down
/* same as GDK_Next */)
253 KEY_MAP_GTK (PageDown
, GDK_KP_Page_Down
/* same as GDK_KP_Next */)
254 KEY_MAP_QT (PageDown
, Qt::Key_PageDown
)
255 KEY_MAP_ANDROID (PageDown
, AKEYCODE_PAGE_DOWN
)
258 KEY_MAP_WIN (PageUp
, VK_PRIOR
)
259 KEY_MAP_COCOA (PageUp
, kVK_PageUp
)
260 KEY_MAP_GTK (PageUp
, GDK_Page_Up
/* same as GDK_Prior */)
261 KEY_MAP_GTK (PageUp
, GDK_KP_Page_Up
/* same as GDK_KP_Prior */)
262 KEY_MAP_QT (PageUp
, Qt::Key_PageUp
)
263 KEY_MAP_ANDROID (PageUp
, AKEYCODE_PAGE_UP
)
265 /******************************************************************************
267 ******************************************************************************/
269 KEY_MAP_WIN (Backspace
, VK_BACK
)
270 KEY_MAP_COCOA (Backspace
, kVK_PC_Backspace
)
271 KEY_MAP_GTK (Backspace
, GDK_BackSpace
)
272 KEY_MAP_QT (Backspace
, Qt::Key_Backspace
)
273 KEY_MAP_ANDROID (Backspace
, AKEYCODE_DEL
)
276 KEY_MAP_WIN (Clear
, VK_CLEAR
)
277 KEY_MAP_WIN (Clear
, VK_OEM_CLEAR
)
278 KEY_MAP_COCOA (Clear
, kVK_ANSI_KeypadClear
)
279 KEY_MAP_GTK (Clear
, GDK_Clear
)
280 KEY_MAP_QT (Clear
, Qt::Key_Clear
)
281 KEY_MAP_ANDROID (Clear
, AKEYCODE_CLEAR
)
284 KEY_MAP_GTK (Copy
, GDK_Copy
)
285 KEY_MAP_QT (Copy
, Qt::Key_Copy
)
288 KEY_MAP_WIN (Crsel
, VK_CRSEL
)
289 KEY_MAP_GTK (Crsel
, GDK_3270_CursorSelect
) // legacy IBM keyboard layout
292 KEY_MAP_GTK (Cut
, GDK_Cut
)
293 KEY_MAP_QT (Cut
, Qt::Key_Cut
)
296 KEY_MAP_WIN (Del
, VK_DELETE
)
297 KEY_MAP_COCOA (Del
, kVK_PC_Delete
)
298 KEY_MAP_GTK (Del
, GDK_Delete
)
299 KEY_MAP_GTK (Del
, GDK_KP_Delete
)
300 KEY_MAP_QT (Del
, Qt::Key_Delete
)
301 KEY_MAP_ANDROID (Del
, AKEYCODE_FORWARD_DEL
)
304 KEY_MAP_WIN (EraseEof
, VK_EREOF
)
305 KEY_MAP_GTK (EraseEof
, GDK_3270_EraseEOF
) // legacy IBM keyboard layout
308 KEY_MAP_WIN (Exsel
, VK_EXSEL
)
309 KEY_MAP_GTK (Exsel
, GDK_3270_ExSelect
) // legacy IBM keyboard layout
312 KEY_MAP_WIN (Insert
, VK_INSERT
)
313 KEY_MAP_GTK (Insert
, GDK_Insert
)
314 KEY_MAP_GTK (Insert
, GDK_KP_Insert
)
315 KEY_MAP_QT (Insert
, Qt::Key_Insert
)
316 KEY_MAP_ANDROID (Insert
, AKEYCODE_INSERT
)
319 KEY_MAP_GTK (Paste
, GDK_Paste
)
320 KEY_MAP_QT (Paste
, Qt::Key_Paste
)
323 KEY_MAP_GTK (Undo
, GDK_Undo
)
325 /******************************************************************************
327 ******************************************************************************/
329 KEY_MAP_WIN (Accept
, VK_ACCEPT
)
330 KEY_MAP_ANDROID (Accept
, AKEYCODE_DPAD_CENTER
)
333 KEY_MAP_WIN_OTH (Attn
, VK_ATTN
) // not valid with Japanese keyboard layout
334 KEY_MAP_GTK (Attn
, GDK_3270_Attn
) // legacy IBM keyboard layout
337 KEY_MAP_WIN (Cancel
, VK_CANCEL
)
338 KEY_MAP_GTK (Cancel
, GDK_Cancel
)
339 KEY_MAP_QT (Cancel
, Qt::Key_Cancel
)
342 KEY_MAP_WIN (Menu
, VK_APPS
)
343 KEY_MAP_COCOA (Menu
, kVK_PC_ContextMenu
)
344 KEY_MAP_GTK (Menu
, GDK_Menu
)
345 KEY_MAP_QT (Menu
, Qt::Key_Menu
)
346 KEY_MAP_ANDROID (Menu
, AKEYCODE_MENU
)
349 KEY_MAP_WIN (Esc
, VK_ESCAPE
)
350 KEY_MAP_COCOA (Esc
, kVK_Escape
)
351 KEY_MAP_GTK (Esc
, GDK_Escape
)
352 KEY_MAP_QT (Esc
, Qt::Key_Escape
)
353 KEY_MAP_ANDROID (Esc
, AKEYCODE_ESCAPE
)
356 KEY_MAP_WIN (Execute
, VK_EXECUTE
)
357 KEY_MAP_GTK (Execute
, GDK_Execute
)
358 KEY_MAP_QT (Execute
, Qt::Key_Execute
)
361 KEY_MAP_GTK (Find
, GDK_Find
)
364 KEY_MAP_WIN (Help
, VK_HELP
)
365 KEY_MAP_COCOA (Help
, kVK_Help
)
366 KEY_MAP_GTK (Help
, GDK_Help
)
367 KEY_MAP_QT (Help
, Qt::Key_Help
)
368 KEY_MAP_ANDROID (Help
, AKEYCODE_ASSIST
)
371 KEY_MAP_WIN (Pause
, VK_PAUSE
)
372 KEY_MAP_GTK (Pause
, GDK_Pause
)
373 // Break is typically mapped to Alt+Pause or Ctrl+Pause on GTK.
374 KEY_MAP_GTK (Pause
, GDK_Break
)
375 KEY_MAP_QT (Pause
, Qt::Key_Pause
)
376 KEY_MAP_ANDROID (Pause
, AKEYCODE_BREAK
)
379 KEY_MAP_WIN (Play
, VK_PLAY
)
380 KEY_MAP_GTK (Play
, GDK_3270_Play
) // legacy IBM keyboard layout
381 KEY_MAP_QT (Play
, Qt::Key_Play
)
384 KEY_MAP_WIN (Select
, VK_SELECT
)
385 KEY_MAP_GTK (Select
, GDK_Select
)
387 /******************************************************************************
389 ******************************************************************************/
391 KEY_MAP_GTK (BrightnessDown
, GDK_MonBrightnessDown
)
392 KEY_MAP_QT (BrightnessDown
, Qt::Key_MonBrightnessDown
)
395 KEY_MAP_GTK (BrightnessUp
, GDK_MonBrightnessUp
)
396 KEY_MAP_QT (BrightnessUp
, Qt::Key_MonBrightnessUp
)
399 KEY_MAP_QT (Camera
, Qt::Key_Camera
)
400 KEY_MAP_ANDROID (Camera
, AKEYCODE_CAMERA
)
403 KEY_MAP_GTK (Eject
, GDK_Eject
)
404 KEY_MAP_QT (Eject
, Qt::Key_Eject
)
405 KEY_MAP_ANDROID (Eject
, AKEYCODE_MEDIA_EJECT
)
408 KEY_MAP_GTK (Power
, GDK_PowerOff
)
409 KEY_MAP_QT (Power
, Qt::Key_PowerOff
)
410 KEY_MAP_ANDROID (Power
, AKEYCODE_POWER
)
413 KEY_MAP_WIN (PrintScreen
, VK_SNAPSHOT
)
414 KEY_MAP_GTK (PrintScreen
, GDK_3270_PrintScreen
)
415 KEY_MAP_GTK (PrintScreen
, GDK_Print
)
416 KEY_MAP_GTK (PrintScreen
, GDK_Sys_Req
)
417 KEY_MAP_QT (PrintScreen
, Qt::Key_Print
)
418 KEY_MAP_QT (PrintScreen
, Qt::Key_SysReq
)
419 KEY_MAP_ANDROID (PrintScreen
, AKEYCODE_SYSRQ
)
421 /******************************************************************************
422 * IME and Composition Keys
423 ******************************************************************************/
425 KEY_MAP_GTK (AllCandidates
, GDK_MultipleCandidate
) // OADG 109, Zen Koho
426 KEY_MAP_QT (AllCandidates
, Qt::Key_MultipleCandidate
)
429 KEY_MAP_WIN_JPN (Alphanumeric
, VK_OEM_ATTN
)
430 KEY_MAP_GTK (Alphanumeric
, GDK_Eisu_Shift
)
431 KEY_MAP_GTK (Alphanumeric
, GDK_Eisu_toggle
)
432 KEY_MAP_QT (Alphanumeric
, Qt::Key_Eisu_Shift
)
433 KEY_MAP_QT (Alphanumeric
, Qt::Key_Eisu_toggle
)
436 KEY_MAP_GTK (CodeInput
, GDK_Codeinput
) // OADG 109, Kanji Bangou
437 KEY_MAP_QT (CodeInput
, Qt::Key_Codeinput
)
440 KEY_MAP_GTK (Compose
, GDK_Multi_key
) // "Multi Key" is "Compose key" on X
441 KEY_MAP_QT (Compose
, Qt::Key_Multi_key
)
444 KEY_MAP_WIN (Convert
, VK_CONVERT
)
445 KEY_MAP_GTK (Convert
, GDK_Henkan
)
446 KEY_MAP_QT (Convert
, Qt::Key_Henkan
)
447 KEY_MAP_ANDROID (Convert
, AKEYCODE_HENKAN
)
450 KEY_MAP_WIN (FinalMode
, VK_FINAL
)
453 KEY_MAP_WIN (ModeChange
, VK_MODECHANGE
)
454 KEY_MAP_ANDROID (ModeChange
, AKEYCODE_SWITCH_CHARSET
)
457 KEY_MAP_WIN (Nonconvert
, VK_NONCONVERT
)
458 KEY_MAP_GTK (Nonconvert
, GDK_Muhenkan
)
459 KEY_MAP_QT (Nonconvert
, Qt::Key_Muhenkan
)
460 KEY_MAP_ANDROID (Nonconvert
, AKEYCODE_MUHENKAN
)
463 KEY_MAP_GTK (PreviousCandidate
, GDK_PreviousCandidate
) // OADG 109, Mae Koho
464 KEY_MAP_QT (PreviousCandidate
, Qt::Key_PreviousCandidate
)
466 /******************************************************************************
467 * Keys specific to Korean keyboards
468 ******************************************************************************/
470 KEY_MAP_WIN_KOR (HangulMode
, VK_HANGUL
/* same as VK_KANA */)
473 KEY_MAP_WIN_KOR (HanjaMode
, VK_HANJA
/* same as VK_KANJI */)
476 KEY_MAP_WIN (JunjaMode
, VK_JUNJA
)
478 /******************************************************************************
479 * Keys specific to Japanese keyboards
480 ******************************************************************************/
482 KEY_MAP_WIN_JPN (HalfWidth
, VK_OEM_AUTO
)
483 KEY_MAP_GTK (HalfWidth
, GDK_Hankaku
)
484 KEY_MAP_QT (HalfWidth
, Qt::Key_Hankaku
)
487 KEY_MAP_WIN_JPN (Hiragana
, VK_OEM_COPY
)
488 KEY_MAP_GTK (Hiragana
, GDK_Hiragana
)
489 KEY_MAP_QT (Hiragana
, Qt::Key_Hiragana
)
492 // VK_KANA is never used with modern Japanese keyboard, however, IE maps it to
493 // KanaMode, therefore, we should use same map for it.
494 KEY_MAP_WIN_JPN (KanaMode
, VK_KANA
/* same as VK_HANGUL */)
495 KEY_MAP_WIN_JPN (KanaMode
, VK_ATTN
)
496 KEY_MAP_GTK (KanaMode
, GDK_Kana_Lock
)
497 KEY_MAP_GTK (KanaMode
, GDK_Kana_Shift
)
498 KEY_MAP_QT (KanaMode
, Qt::Key_Kana_Lock
)
499 KEY_MAP_QT (KanaMode
, Qt::Key_Kana_Shift
)
502 KEY_MAP_WIN_JPN (KanjiMode
, VK_KANJI
/* same as VK_HANJA */)
503 KEY_MAP_COCOA (KanjiMode
, kVK_JIS_Kana
) // Kana key opens IME
504 KEY_MAP_GTK (KanjiMode
, GDK_Kanji
) // Typically, Alt + Hankaku/Zenkaku key
505 KEY_MAP_QT (KanjiMode
, Qt::Key_Kanji
)
506 // Assuming that KANA key of Android is the Kana key on Mac keyboard.
507 KEY_MAP_ANDROID (KanjiMode
, AKEYCODE_KANA
)
510 KEY_MAP_WIN_JPN (Katakana
, VK_OEM_FINISH
)
511 KEY_MAP_GTK (Katakana
, GDK_Katakana
)
512 KEY_MAP_QT (Katakana
, Qt::Key_Katakana
)
515 KEY_MAP_WIN_JPN (RomanCharacters
, VK_OEM_BACKTAB
)
516 KEY_MAP_COCOA (RomanCharacters
, kVK_JIS_Eisu
)
517 KEY_MAP_GTK (RomanCharacters
, GDK_Romaji
)
518 KEY_MAP_QT (RomanCharacters
, Qt::Key_Romaji
)
519 // Assuming that EISU key of Android is the Eisu key on Mac keyboard.
520 KEY_MAP_ANDROID (RomanCharacters
, AKEYCODE_EISU
)
523 KEY_MAP_WIN_JPN (FullWidth
, VK_OEM_ENLW
)
524 KEY_MAP_GTK (FullWidth
, GDK_Zenkaku
)
525 KEY_MAP_QT (FullWidth
, Qt::Key_Zenkaku
)
527 /******************************************************************************
528 * General-Purpose Function Keys
529 ******************************************************************************/
531 KEY_MAP_WIN (F1
, VK_F1
)
532 KEY_MAP_COCOA (F1
, kVK_F1
)
533 KEY_MAP_GTK (F1
, GDK_F1
)
534 KEY_MAP_GTK (F1
, GDK_KP_F1
)
535 KEY_MAP_QT (F1
, Qt::Key_F1
)
536 KEY_MAP_ANDROID (F1
, AKEYCODE_F1
)
539 KEY_MAP_WIN (F2
, VK_F2
)
540 KEY_MAP_COCOA (F2
, kVK_F2
)
541 KEY_MAP_GTK (F2
, GDK_F2
)
542 KEY_MAP_GTK (F2
, GDK_KP_F2
)
543 KEY_MAP_QT (F2
, Qt::Key_F2
)
544 KEY_MAP_ANDROID (F2
, AKEYCODE_F2
)
547 KEY_MAP_WIN (F3
, VK_F3
)
548 KEY_MAP_COCOA (F3
, kVK_F3
)
549 KEY_MAP_GTK (F3
, GDK_F3
)
550 KEY_MAP_GTK (F3
, GDK_KP_F3
)
551 KEY_MAP_QT (F3
, Qt::Key_F3
)
552 KEY_MAP_ANDROID (F3
, AKEYCODE_F3
)
555 KEY_MAP_WIN (F4
, VK_F4
)
556 KEY_MAP_COCOA (F4
, kVK_F4
)
557 KEY_MAP_GTK (F4
, GDK_F4
)
558 KEY_MAP_GTK (F4
, GDK_KP_F4
)
559 KEY_MAP_QT (F4
, Qt::Key_F4
)
560 KEY_MAP_ANDROID (F4
, AKEYCODE_F4
)
563 KEY_MAP_WIN (F5
, VK_F5
)
564 KEY_MAP_COCOA (F5
, kVK_F5
)
565 KEY_MAP_GTK (F5
, GDK_F5
)
566 KEY_MAP_QT (F5
, Qt::Key_F5
)
567 KEY_MAP_ANDROID (F5
, AKEYCODE_F5
)
570 KEY_MAP_WIN (F6
, VK_F6
)
571 KEY_MAP_COCOA (F6
, kVK_F6
)
572 KEY_MAP_GTK (F6
, GDK_F6
)
573 KEY_MAP_QT (F6
, Qt::Key_F6
)
574 KEY_MAP_ANDROID (F6
, AKEYCODE_F6
)
577 KEY_MAP_WIN (F7
, VK_F7
)
578 KEY_MAP_COCOA (F7
, kVK_F7
)
579 KEY_MAP_GTK (F7
, GDK_F7
)
580 KEY_MAP_QT (F7
, Qt::Key_F7
)
581 KEY_MAP_ANDROID (F7
, AKEYCODE_F7
)
584 KEY_MAP_WIN (F8
, VK_F8
)
585 KEY_MAP_COCOA (F8
, kVK_F8
)
586 KEY_MAP_GTK (F8
, GDK_F8
)
587 KEY_MAP_QT (F8
, Qt::Key_F8
)
588 KEY_MAP_ANDROID (F8
, AKEYCODE_F8
)
591 KEY_MAP_WIN (F9
, VK_F9
)
592 KEY_MAP_COCOA (F9
, kVK_F9
)
593 KEY_MAP_GTK (F9
, GDK_F9
)
594 KEY_MAP_QT (F9
, Qt::Key_F9
)
595 KEY_MAP_ANDROID (F9
, AKEYCODE_F9
)
598 KEY_MAP_WIN (F10
, VK_F10
)
599 KEY_MAP_COCOA (F10
, kVK_F10
)
600 KEY_MAP_GTK (F10
, GDK_F10
)
601 KEY_MAP_QT (F10
, Qt::Key_F10
)
602 KEY_MAP_ANDROID (F10
, AKEYCODE_F10
)
605 KEY_MAP_WIN (F11
, VK_F11
)
606 KEY_MAP_COCOA (F11
, kVK_F11
)
607 KEY_MAP_GTK (F11
, GDK_F11
/* same as GDK_L1 */)
608 KEY_MAP_QT (F11
, Qt::Key_F11
)
609 KEY_MAP_ANDROID (F11
, AKEYCODE_F11
)
612 KEY_MAP_WIN (F12
, VK_F12
)
613 KEY_MAP_COCOA (F12
, kVK_F12
)
614 KEY_MAP_GTK (F12
, GDK_F12
/* same as GDK_L2 */)
615 KEY_MAP_QT (F12
, Qt::Key_F12
)
616 KEY_MAP_ANDROID (F12
, AKEYCODE_F12
)
619 KEY_MAP_WIN (F13
, VK_F13
)
620 KEY_MAP_COCOA (F13
, kVK_F13
)
621 KEY_MAP_GTK (F13
, GDK_F13
/* same as GDK_L3 */)
622 KEY_MAP_QT (F13
, Qt::Key_F13
)
625 KEY_MAP_WIN (F14
, VK_F14
)
626 KEY_MAP_COCOA (F14
, kVK_F14
)
627 KEY_MAP_GTK (F14
, GDK_F14
/* same as GDK_L4 */)
628 KEY_MAP_QT (F14
, Qt::Key_F14
)
631 KEY_MAP_WIN (F15
, VK_F15
)
632 KEY_MAP_COCOA (F15
, kVK_F15
)
633 KEY_MAP_GTK (F15
, GDK_F15
/* same as GDK_L5 */)
634 KEY_MAP_QT (F15
, Qt::Key_F15
)
637 KEY_MAP_WIN (F16
, VK_F16
)
638 KEY_MAP_COCOA (F16
, kVK_F16
)
639 KEY_MAP_GTK (F16
, GDK_F16
/* same as GDK_L6 */)
640 KEY_MAP_QT (F16
, Qt::Key_F16
)
643 KEY_MAP_WIN (F17
, VK_F17
)
644 KEY_MAP_COCOA (F17
, kVK_F17
)
645 KEY_MAP_GTK (F17
, GDK_F17
/* same as GDK_L7 */)
646 KEY_MAP_QT (F17
, Qt::Key_F17
)
649 KEY_MAP_WIN (F18
, VK_F18
)
650 KEY_MAP_COCOA (F18
, kVK_F18
)
651 KEY_MAP_GTK (F18
, GDK_F18
/* same as GDK_L8 */)
652 KEY_MAP_QT (F18
, Qt::Key_F18
)
655 KEY_MAP_WIN (F19
, VK_F19
)
656 KEY_MAP_COCOA (F19
, kVK_F19
)
657 KEY_MAP_GTK (F19
, GDK_F19
/* same as GDK_L9 */)
658 KEY_MAP_QT (F19
, Qt::Key_F19
)
661 KEY_MAP_WIN (F20
, VK_F20
)
662 KEY_MAP_GTK (F20
, GDK_F20
/* same as GDK_L10 */)
663 KEY_MAP_QT (F20
, Qt::Key_F20
)
666 KEY_MAP_WIN (F21
, VK_F21
)
667 KEY_MAP_GTK (F21
, GDK_F21
/* same as GDK_R1 */)
668 KEY_MAP_QT (F21
, Qt::Key_F21
)
671 KEY_MAP_WIN (F22
, VK_F22
)
672 KEY_MAP_GTK (F22
, GDK_F22
/* same as GDK_R2 */)
673 KEY_MAP_QT (F22
, Qt::Key_F22
)
676 KEY_MAP_WIN (F23
, VK_F23
)
677 KEY_MAP_GTK (F23
, GDK_F23
/* same as GDK_R3 */)
678 KEY_MAP_QT (F23
, Qt::Key_F23
)
681 KEY_MAP_WIN (F24
, VK_F24
)
682 KEY_MAP_GTK (F24
, GDK_F24
/* same as GDK_R4 */)
683 KEY_MAP_QT (F24
, Qt::Key_F24
)
686 KEY_MAP_GTK (F25
, GDK_F25
/* same as GDK_R5 */)
687 KEY_MAP_QT (F25
, Qt::Key_F25
)
690 KEY_MAP_GTK (F26
, GDK_F26
/* same as GDK_R6 */)
691 KEY_MAP_QT (F26
, Qt::Key_F26
)
694 KEY_MAP_GTK (F27
, GDK_F27
/* same as GDK_R7 */)
695 KEY_MAP_QT (F27
, Qt::Key_F27
)
698 KEY_MAP_GTK (F28
, GDK_F28
/* same as GDK_R8 */)
699 KEY_MAP_QT (F28
, Qt::Key_F28
)
702 KEY_MAP_GTK (F29
, GDK_F29
/* same as GDK_R9 */)
703 KEY_MAP_QT (F29
, Qt::Key_F29
)
706 KEY_MAP_GTK (F30
, GDK_F30
/* same as GDK_R10 */)
707 KEY_MAP_QT (F30
, Qt::Key_F30
)
710 KEY_MAP_GTK (F31
, GDK_F31
/* same as GDK_R11 */)
711 KEY_MAP_QT (F31
, Qt::Key_F31
)
714 KEY_MAP_GTK (F32
, GDK_F32
/* same as GDK_R12 */)
715 KEY_MAP_QT (F32
, Qt::Key_F32
)
718 KEY_MAP_GTK (F33
, GDK_F33
/* same as GDK_R13 */)
719 KEY_MAP_QT (F33
, Qt::Key_F33
)
722 KEY_MAP_GTK (F34
, GDK_F34
/* same as GDK_R14 */)
723 KEY_MAP_QT (F34
, Qt::Key_F34
)
726 KEY_MAP_GTK (F35
, GDK_F35
/* same as GDK_R15 */)
727 KEY_MAP_QT (F35
, Qt::Key_F35
)
729 /******************************************************************************
731 ******************************************************************************/
733 KEY_MAP_WIN (MediaPlayPause
, VK_MEDIA_PLAY_PAUSE
)
734 KEY_MAP_QT (MediaPlayPause
, Qt::Key_MediaTogglePlayPause
)
735 KEY_MAP_ANDROID (MediaPlayPause
, AKEYCODE_MEDIA_PLAY_PAUSE
)
738 KEY_MAP_WIN (SelectMedia
, VK_LAUNCH_MEDIA_SELECT
)
741 KEY_MAP_WIN (MediaStop
, VK_MEDIA_STOP
)
742 KEY_MAP_GTK (MediaStop
, GDK_AudioStop
)
743 KEY_MAP_QT (MediaStop
, Qt::Key_MediaStop
)
744 KEY_MAP_ANDROID (MediaStop
, AKEYCODE_MEDIA_STOP
)
747 KEY_MAP_WIN (MediaNextTrack
, VK_MEDIA_NEXT_TRACK
)
748 KEY_MAP_GTK (MediaNextTrack
, GDK_AudioNext
)
749 KEY_MAP_QT (MediaNextTrack
, Qt::Key_MediaNext
)
750 KEY_MAP_ANDROID (MediaNextTrack
, AKEYCODE_MEDIA_NEXT
)
752 // MediaPreviousTrack
753 KEY_MAP_WIN (MediaPreviousTrack
, VK_MEDIA_PREV_TRACK
)
754 KEY_MAP_GTK (MediaPreviousTrack
, GDK_AudioPrev
)
755 KEY_MAP_QT (MediaPreviousTrack
, Qt::Key_MediaPrevious
)
756 KEY_MAP_ANDROID (MediaPreviousTrack
, AKEYCODE_MEDIA_PREVIOUS
)
759 KEY_MAP_WIN (VolumeDown
, VK_VOLUME_DOWN
)
760 KEY_MAP_COCOA (VolumeDown
, kVK_VolumeDown
)
761 KEY_MAP_GTK (VolumeDown
, GDK_AudioLowerVolume
)
762 KEY_MAP_QT (VolumeDown
, Qt::Key_VolumeDown
)
763 KEY_MAP_ANDROID (VolumeDown
, AKEYCODE_VOLUME_DOWN
)
766 KEY_MAP_WIN (VolumeUp
, VK_VOLUME_UP
)
767 KEY_MAP_COCOA (VolumeUp
, kVK_VolumeUp
)
768 KEY_MAP_GTK (VolumeUp
, GDK_AudioRaiseVolume
)
769 KEY_MAP_QT (VolumeUp
, Qt::Key_VolumeUp
)
770 KEY_MAP_ANDROID (VolumeUp
, AKEYCODE_VOLUME_UP
)
773 KEY_MAP_WIN (VolumeMute
, VK_VOLUME_MUTE
)
774 KEY_MAP_COCOA (VolumeMute
, kVK_Mute
)
775 KEY_MAP_GTK (VolumeMute
, GDK_AudioMute
)
776 KEY_MAP_QT (VolumeMute
, Qt::Key_VolumeMute
)
777 KEY_MAP_ANDROID (VolumeMute
, AKEYCODE_VOLUME_MUTE
)
779 /******************************************************************************
781 ******************************************************************************/
783 KEY_MAP_WIN (LaunchMail
, VK_LAUNCH_MAIL
)
784 KEY_MAP_GTK (LaunchMail
, GDK_Mail
)
785 KEY_MAP_QT (LaunchMail
, Qt::Key_LaunchMail
)
786 KEY_MAP_ANDROID (LaunchMail
, AKEYCODE_ENVELOPE
)
788 // LaunchApplication1
789 KEY_MAP_WIN (LaunchApplication1
, VK_LAUNCH_APP1
)
790 KEY_MAP_GTK (LaunchApplication1
, GDK_Launch0
)
791 KEY_MAP_QT (LaunchApplication1
, Qt::Key_Launch0
)
792 KEY_MAP_ANDROID (LaunchApplication1
, AKEYCODE_EXPLORER
)
794 // LaunchApplication2
795 KEY_MAP_WIN (LaunchApplication2
, VK_LAUNCH_APP2
)
796 KEY_MAP_GTK (LaunchApplication2
, GDK_Launch1
)
797 KEY_MAP_QT (LaunchApplication2
, Qt::Key_Launch1
)
799 // LaunchApplication3
800 KEY_MAP_GTK (LaunchApplication3
, GDK_Launch2
)
801 KEY_MAP_QT (LaunchApplication3
, Qt::Key_Launch2
)
803 // LaunchApplication4
804 KEY_MAP_GTK (LaunchApplication4
, GDK_Launch3
)
805 KEY_MAP_QT (LaunchApplication4
, Qt::Key_Launch3
)
807 // LaunchApplication5
808 KEY_MAP_GTK (LaunchApplication5
, GDK_Launch4
)
809 KEY_MAP_QT (LaunchApplication5
, Qt::Key_Launch4
)
811 // LaunchApplication6
812 KEY_MAP_GTK (LaunchApplication6
, GDK_Launch5
)
813 KEY_MAP_QT (LaunchApplication6
, Qt::Key_Launch5
)
815 // LaunchApplication7
816 KEY_MAP_GTK (LaunchApplication7
, GDK_Launch6
)
817 KEY_MAP_QT (LaunchApplication7
, Qt::Key_Launch6
)
819 // LaunchApplication8
820 KEY_MAP_GTK (LaunchApplication8
, GDK_Launch7
)
821 KEY_MAP_QT (LaunchApplication8
, Qt::Key_Launch7
)
823 // LaunchApplication9
824 KEY_MAP_GTK (LaunchApplication9
, GDK_Launch8
)
825 KEY_MAP_QT (LaunchApplication9
, Qt::Key_Launch8
)
827 // LaunchApplication10
828 KEY_MAP_GTK (LaunchApplication10
, GDK_Launch9
)
829 KEY_MAP_QT (LaunchApplication10
, Qt::Key_Launch9
)
831 // LaunchApplication11
832 KEY_MAP_GTK (LaunchApplication11
, GDK_LaunchA
)
833 KEY_MAP_QT (LaunchApplication11
, Qt::Key_LaunchA
)
835 // LaunchApplication12
836 KEY_MAP_GTK (LaunchApplication12
, GDK_LaunchB
)
837 KEY_MAP_QT (LaunchApplication12
, Qt::Key_LaunchB
)
839 // LaunchApplication13
840 KEY_MAP_GTK (LaunchApplication13
, GDK_LaunchC
)
841 KEY_MAP_QT (LaunchApplication13
, Qt::Key_LaunchC
)
843 // LaunchApplication14
844 KEY_MAP_GTK (LaunchApplication14
, GDK_LaunchD
)
845 KEY_MAP_QT (LaunchApplication14
, Qt::Key_LaunchD
)
847 // LaunchApplication15
848 KEY_MAP_GTK (LaunchApplication15
, GDK_LaunchE
)
849 KEY_MAP_QT (LaunchApplication15
, Qt::Key_LaunchE
)
851 // LaunchApplication16
852 KEY_MAP_GTK (LaunchApplication16
, GDK_LaunchF
)
853 KEY_MAP_QT (LaunchApplication16
, Qt::Key_LaunchF
)
855 // LaunchApplication17
856 KEY_MAP_QT (LaunchApplication17
, Qt::Key_LaunchG
)
858 // LaunchApplication18
859 KEY_MAP_QT (LaunchApplication18
, Qt::Key_LaunchH
)
861 /******************************************************************************
863 ******************************************************************************/
865 KEY_MAP_WIN (BrowserBack
, VK_BROWSER_BACK
)
866 KEY_MAP_GTK (BrowserBack
, GDK_Back
)
867 KEY_MAP_QT (BrowserBack
, Qt::Key_Back
)
868 KEY_MAP_ANDROID (BrowserBack
, AKEYCODE_BACK
)
871 KEY_MAP_WIN (BrowserFavorites
, VK_BROWSER_FAVORITES
)
872 KEY_MAP_QT (BrowserFavorites
, Qt::Key_Favorites
)
873 KEY_MAP_ANDROID (BrowserFavorites
, AKEYCODE_BOOKMARK
)
876 KEY_MAP_WIN (BrowserForward
, VK_BROWSER_FORWARD
)
877 KEY_MAP_GTK (BrowserForward
, GDK_Forward
)
878 KEY_MAP_QT (BrowserForward
, Qt::Key_Forward
)
879 KEY_MAP_ANDROID (BrowserForward
, AKEYCODE_FORWARD
)
882 KEY_MAP_WIN (BrowserHome
, VK_BROWSER_HOME
)
883 KEY_MAP_GTK (BrowserHome
, GDK_HomePage
)
884 KEY_MAP_QT (BrowserHome
, Qt::Key_HomePage
)
887 KEY_MAP_WIN (BrowserRefresh
, VK_BROWSER_REFRESH
)
888 KEY_MAP_GTK (BrowserRefresh
, GDK_Refresh
)
889 KEY_MAP_GTK (BrowserRefresh
, GDK_Reload
)
890 KEY_MAP_QT (BrowserRefresh
, Qt::Key_Refresh
)
891 KEY_MAP_QT (BrowserRefresh
, Qt::Key_Reload
)
894 KEY_MAP_WIN (BrowserSearch
, VK_BROWSER_SEARCH
)
895 KEY_MAP_GTK (BrowserSearch
, GDK_Search
)
896 KEY_MAP_QT (BrowserSearch
, Qt::Key_Search
)
897 KEY_MAP_ANDROID (BrowserSearch
, AKEYCODE_SEARCH
)
900 KEY_MAP_WIN (BrowserStop
, VK_BROWSER_STOP
)
901 KEY_MAP_GTK (BrowserStop
, GDK_Stop
)
902 KEY_MAP_QT (BrowserStop
, Qt::Key_Stop
)
904 /******************************************************************************
905 * Media Controller Keys
906 ******************************************************************************/
907 // AudioBassBoostDown
908 KEY_MAP_QT (AudioBassBoostDown
, Qt::Key_BassDown
)
911 KEY_MAP_QT (AudioBassBoostUp
, Qt::Key_BassUp
)
914 KEY_MAP_ANDROID (ChannelDown
, AKEYCODE_CHANNEL_DOWN
)
917 KEY_MAP_ANDROID (ChannelUp
, AKEYCODE_CHANNEL_UP
)
920 KEY_MAP_GTK (Red
, GDK_Red
)
921 KEY_MAP_ANDROID (Red
, AKEYCODE_PROG_RED
)
924 KEY_MAP_GTK (Green
, GDK_Green
)
925 KEY_MAP_ANDROID (Green
, AKEYCODE_PROG_GREEN
)
928 KEY_MAP_GTK (Yellow
, GDK_Yellow
)
929 KEY_MAP_ANDROID (Yellow
, AKEYCODE_PROG_YELLOW
)
932 KEY_MAP_GTK (Blue
, GDK_Blue
)
933 KEY_MAP_ANDROID (Blue
, AKEYCODE_PROG_BLUE
)
936 KEY_MAP_GTK (Dimmer
, GDK_BrightnessAdjust
)
937 KEY_MAP_QT (Dimmer
, Qt::Key_BrightnessAdjust
)
940 KEY_MAP_ANDROID (Exit
, AKEYCODE_HOME
)
943 KEY_MAP_ANDROID (Guide
, AKEYCODE_GUIDE
)
946 KEY_MAP_ANDROID (Info
, AKEYCODE_INFO
)
949 KEY_MAP_ANDROID (Live
, AKEYCODE_TV
)
952 KEY_MAP_ANDROID (Apps
, AKEYCODE_APP_SWITCH
)
955 KEY_MAP_QT (FastFwd
, Qt::Key_AudioForward
)
956 KEY_MAP_ANDROID (FastFwd
, AKEYCODE_MEDIA_FAST_FORWARD
)
959 KEY_MAP_QT (MediaLast
, Qt::Key_MediaLast
)
962 KEY_MAP_GTK (MediaPause
, GDK_AudioPause
)
963 KEY_MAP_QT (MediaPause
, Qt::Key_MediaPause
)
964 KEY_MAP_ANDROID (MediaPause
, AKEYCODE_MEDIA_PAUSE
)
967 KEY_MAP_GTK (MediaPlay
, GDK_AudioPlay
)
968 KEY_MAP_QT (MediaPlay
, Qt::Key_MediaPlay
)
969 KEY_MAP_ANDROID (MediaPlay
, AKEYCODE_MEDIA_PLAY
)
972 KEY_MAP_GTK (MediaRecord
, GDK_AudioRecord
)
973 KEY_MAP_QT (MediaRecord
, Qt::Key_MediaRecord
)
974 KEY_MAP_ANDROID (MediaRecord
, AKEYCODE_MEDIA_RECORD
)
977 KEY_MAP_GTK (MediaRewind
, GDK_AudioRewind
)
978 KEY_MAP_QT (MediaRewind
, Qt::Key_AudioRewind
)
979 KEY_MAP_ANDROID (MediaRewind
, AKEYCODE_MEDIA_REWIND
)
982 KEY_MAP_ANDROID (PinPToggle
, AKEYCODE_WINDOW
)
985 KEY_MAP_GTK (RandomToggle
, GDK_AudioRandomPlay
)
986 KEY_MAP_QT (RandomToggle
, Qt::Key_AudioRandomPlay
)
989 KEY_MAP_ANDROID (Settings
, AKEYCODE_SETTINGS
)
992 KEY_MAP_GTK (Subtitle
, GDK_Subtitle
)
993 KEY_MAP_QT (Subtitle
, Qt::Key_Subtitle
)
994 KEY_MAP_ANDROID (Subtitle
, AKEYCODE_CAPTIONS
)
997 KEY_MAP_WIN (Zoom
, VK_ZOOM
)
998 KEY_MAP_QT (Zoom
, Qt::Key_Zoom
)
1000 /******************************************************************************
1002 ******************************************************************************/
1004 KEY_MAP_GTK (DeadGrave
, GDK_dead_grave
)
1005 KEY_MAP_QT (DeadGrave
, Qt::Key_Dead_Grave
)
1008 KEY_MAP_GTK (DeadAcute
, GDK_dead_acute
)
1009 KEY_MAP_QT (DeadAcute
, Qt::Key_Dead_Acute
)
1012 KEY_MAP_GTK (DeadCircumflex
, GDK_dead_circumflex
)
1013 KEY_MAP_QT (DeadCircumflex
, Qt::Key_Dead_Circumflex
)
1016 KEY_MAP_GTK (DeadTilde
, GDK_dead_tilde
)
1017 KEY_MAP_QT (DeadTilde
, Qt::Key_Dead_Tilde
)
1020 KEY_MAP_GTK (DeadMacron
, GDK_dead_macron
)
1021 KEY_MAP_QT (DeadMacron
, Qt::Key_Dead_Macron
)
1024 KEY_MAP_GTK (DeadBreve
, GDK_dead_breve
)
1025 KEY_MAP_QT (DeadBreve
, Qt::Key_Dead_Breve
)
1028 KEY_MAP_GTK (DeadAboveDot
, GDK_dead_abovedot
)
1029 KEY_MAP_QT (DeadAboveDot
, Qt::Key_Dead_Abovedot
)
1032 KEY_MAP_GTK (DeadUmlaut
, GDK_dead_diaeresis
)
1033 KEY_MAP_QT (DeadUmlaut
, Qt::Key_Dead_Diaeresis
)
1036 KEY_MAP_GTK (DeadAboveRing
, GDK_dead_abovering
)
1037 KEY_MAP_QT (DeadAboveRing
, Qt::Key_Dead_Abovering
)
1040 KEY_MAP_GTK (DeadDoubleacute
, GDK_dead_doubleacute
)
1041 KEY_MAP_QT (DeadDoubleacute
, Qt::Key_Dead_Doubleacute
)
1044 KEY_MAP_GTK (DeadCaron
, GDK_dead_caron
)
1045 KEY_MAP_QT (DeadCaron
, Qt::Key_Dead_Caron
)
1048 KEY_MAP_GTK (DeadCedilla
, GDK_dead_cedilla
)
1049 KEY_MAP_QT (DeadCedilla
, Qt::Key_Dead_Cedilla
)
1052 KEY_MAP_GTK (DeadOgonek
, GDK_dead_ogonek
)
1053 KEY_MAP_QT (DeadOgonek
, Qt::Key_Dead_Ogonek
)
1056 KEY_MAP_GTK (DeadIota
, GDK_dead_iota
)
1057 KEY_MAP_QT (DeadIota
, Qt::Key_Dead_Iota
)
1060 KEY_MAP_GTK (DeadVoicedSound
, GDK_dead_voiced_sound
)
1061 KEY_MAP_QT (DeadVoicedSound
, Qt::Key_Dead_Voiced_Sound
)
1063 // DeadSemivoicedSound
1064 KEY_MAP_GTK (DeadSemivoicedSound
, GDK_dead_semivoiced_sound
)
1065 KEY_MAP_QT (DeadSemivoicedSound
, Qt::Key_Dead_Semivoiced_Sound
)
1068 #undef KEY_MAP_WIN_JPN
1069 #undef KEY_MAP_WIN_KOR
1070 #undef KEY_MAP_WIN_OTH
1071 #undef KEY_MAP_COCOA
1074 #undef KEY_MAP_ANDROID