| 1 |
/* |
| 2 |
* libkysdk-shortcut's Library |
| 3 |
* |
| 4 |
* Copyright (C) 2025, KylinSoft Co., Ltd. |
| 5 |
* |
| 6 |
* This library is free software; you can redistribute it and/or |
| 7 |
* modify it under the terms of the GNU Lesser General Public |
| 8 |
* License as published by the Free Software Foundation; either |
| 9 |
* version 3 of the License, or (at your option) any later version. |
| 10 |
* |
| 11 |
* This library is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
* Lesser General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU General Public License |
| 17 |
* along with this library. If not, see <https://www.gnu.org/licenses/>. |
| 18 |
* |
| 19 |
* Authors: ShaoShuai Tian <[email protected]> |
| 20 |
* |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef LIBKEYMAP_H |
| 24 |
#define LIBKEYMAP_H |
| 25 |
|
| 26 |
/** @defgroup ShortcutModule |
| 27 |
* @{ |
| 28 |
*/ |
| 29 |
|
| 30 |
/** |
| 31 |
* @file libkykeymap.h |
| 32 |
* @author tianshaoshuai ([email protected]) |
| 33 |
* @brief 提供快捷键模块按键定义 |
| 34 |
* @date 2025-04-17 |
| 35 |
* |
| 36 |
* @copyright Copyright (c) 2025 |
| 37 |
* @since 3.0.1.0 |
| 38 |
*/ |
| 39 |
|
| 40 |
enum KDK_KEY |
| 41 |
{ |
| 42 |
KDK_Key_Escape = 0x01000000, // misc keys |
| 43 |
KDK_Key_Tab = 0x01000001, |
| 44 |
KDK_Key_Backtab = 0x01000002, |
| 45 |
KDK_Key_Backspace = 0x01000003, |
| 46 |
KDK_Key_Return = 0x01000004, |
| 47 |
KDK_Key_Enter = 0x01000005, |
| 48 |
KDK_Key_Insert = 0x01000006, |
| 49 |
KDK_Key_Delete = 0x01000007, |
| 50 |
KDK_Key_Pause = 0x01000008, |
| 51 |
KDK_Key_Print = 0x01000009, // print screen |
| 52 |
KDK_Key_SysReq = 0x0100000a, |
| 53 |
KDK_Key_Clear = 0x0100000b, |
| 54 |
KDK_Key_Home = 0x01000010, // cursor movement |
| 55 |
KDK_Key_End = 0x01000011, |
| 56 |
KDK_Key_Left = 0x01000012, |
| 57 |
KDK_Key_Up = 0x01000013, |
| 58 |
KDK_Key_Right = 0x01000014, |
| 59 |
KDK_Key_Down = 0x01000015, |
| 60 |
KDK_Key_PageUp = 0x01000016, |
| 61 |
KDK_Key_PageDown = 0x01000017, |
| 62 |
KDK_Key_Shift = 0x01000020, // modifiers |
| 63 |
KDK_Key_Control = 0x01000021, |
| 64 |
KDK_Key_Meta = 0x01000022, |
| 65 |
KDK_Key_Alt = 0x01000023, |
| 66 |
KDK_Key_CapsLock = 0x01000024, |
| 67 |
KDK_Key_NumLock = 0x01000025, |
| 68 |
KDK_Key_ScrollLock = 0x01000026, |
| 69 |
KDK_Key_F1 = 0x01000030, // function keys |
| 70 |
KDK_Key_F2 = 0x01000031, |
| 71 |
KDK_Key_F3 = 0x01000032, |
| 72 |
KDK_Key_F4 = 0x01000033, |
| 73 |
KDK_Key_F5 = 0x01000034, |
| 74 |
KDK_Key_F6 = 0x01000035, |
| 75 |
KDK_Key_F7 = 0x01000036, |
| 76 |
KDK_Key_F8 = 0x01000037, |
| 77 |
KDK_Key_F9 = 0x01000038, |
| 78 |
KDK_Key_F10 = 0x01000039, |
| 79 |
KDK_Key_F11 = 0x0100003a, |
| 80 |
KDK_Key_F12 = 0x0100003b, |
| 81 |
KDK_Key_F13 = 0x0100003c, |
| 82 |
KDK_Key_F14 = 0x0100003d, |
| 83 |
KDK_Key_F15 = 0x0100003e, |
| 84 |
KDK_Key_F16 = 0x0100003f, |
| 85 |
KDK_Key_F17 = 0x01000040, |
| 86 |
KDK_Key_F18 = 0x01000041, |
| 87 |
KDK_Key_F19 = 0x01000042, |
| 88 |
KDK_Key_F20 = 0x01000043, |
| 89 |
KDK_Key_F21 = 0x01000044, |
| 90 |
KDK_Key_F22 = 0x01000045, |
| 91 |
KDK_Key_F23 = 0x01000046, |
| 92 |
KDK_Key_F24 = 0x01000047, |
| 93 |
KDK_Key_F25 = 0x01000048, // F25 .. F35 only on X11 |
| 94 |
KDK_Key_F26 = 0x01000049, |
| 95 |
KDK_Key_F27 = 0x0100004a, |
| 96 |
KDK_Key_F28 = 0x0100004b, |
| 97 |
KDK_Key_F29 = 0x0100004c, |
| 98 |
KDK_Key_F30 = 0x0100004d, |
| 99 |
KDK_Key_F31 = 0x0100004e, |
| 100 |
KDK_Key_F32 = 0x0100004f, |
| 101 |
KDK_Key_F33 = 0x01000050, |
| 102 |
KDK_Key_F34 = 0x01000051, |
| 103 |
KDK_Key_F35 = 0x01000052, |
| 104 |
KDK_Key_Super_L = 0x01000053, // extra keys |
| 105 |
KDK_Key_Super_R = 0x01000054, |
| 106 |
KDK_Key_Menu = 0x01000055, |
| 107 |
KDK_Key_Hyper_L = 0x01000056, |
| 108 |
KDK_Key_Hyper_R = 0x01000057, |
| 109 |
KDK_Key_Help = 0x01000058, |
| 110 |
KDK_Key_Direction_L = 0x01000059, |
| 111 |
KDK_Key_Direction_R = 0x01000060, |
| 112 |
KDK_Key_Space = 0x20, // 7 bit printable ASCII |
| 113 |
KDK_Key_Any = KDK_Key_Escape, |
| 114 |
KDK_Key_Exclam = 0x21, |
| 115 |
KDK_Key_QuoteDbl = 0x22, |
| 116 |
KDK_Key_NumberSign = 0x23, |
| 117 |
KDK_Key_Dollar = 0x24, |
| 118 |
KDK_Key_Percent = 0x25, |
| 119 |
KDK_Key_Ampersand = 0x26, |
| 120 |
KDK_Key_Apostrophe = 0x27, |
| 121 |
KDK_Key_ParenLeft = 0x28, |
| 122 |
KDK_Key_ParenRight = 0x29, |
| 123 |
KDK_Key_Asterisk = 0x2a, |
| 124 |
KDK_Key_Plus = 0x2b, |
| 125 |
KDK_Key_Comma = 0x2c, |
| 126 |
KDK_Key_Minus = 0x2d, |
| 127 |
KDK_Key_Period = 0x2e, |
| 128 |
KDK_Key_Slash = 0x2f, |
| 129 |
KDK_Key_0 = 0x30, |
| 130 |
KDK_Key_1 = 0x31, |
| 131 |
KDK_Key_2 = 0x32, |
| 132 |
KDK_Key_3 = 0x33, |
| 133 |
KDK_Key_4 = 0x34, |
| 134 |
KDK_Key_5 = 0x35, |
| 135 |
KDK_Key_6 = 0x36, |
| 136 |
KDK_Key_7 = 0x37, |
| 137 |
KDK_Key_8 = 0x38, |
| 138 |
KDK_Key_9 = 0x39, |
| 139 |
KDK_Key_Colon = 0x3a, |
| 140 |
KDK_Key_Semicolon = 0x3b, |
| 141 |
KDK_Key_Less = 0x3c, |
| 142 |
KDK_Key_Equal = 0x3d, |
| 143 |
KDK_Key_Greater = 0x3e, |
| 144 |
KDK_Key_Question = 0x3f, |
| 145 |
KDK_Key_At = 0x40, |
| 146 |
KDK_Key_A = 0x41, |
| 147 |
KDK_Key_B = 0x42, |
| 148 |
KDK_Key_C = 0x43, |
| 149 |
KDK_Key_D = 0x44, |
| 150 |
KDK_Key_E = 0x45, |
| 151 |
KDK_Key_F = 0x46, |
| 152 |
KDK_Key_G = 0x47, |
| 153 |
KDK_Key_H = 0x48, |
| 154 |
KDK_Key_I = 0x49, |
| 155 |
KDK_Key_J = 0x4a, |
| 156 |
KDK_Key_K = 0x4b, |
| 157 |
KDK_Key_L = 0x4c, |
| 158 |
KDK_Key_M = 0x4d, |
| 159 |
KDK_Key_N = 0x4e, |
| 160 |
KDK_Key_O = 0x4f, |
| 161 |
KDK_Key_P = 0x50, |
| 162 |
KDK_Key_Q = 0x51, |
| 163 |
KDK_Key_R = 0x52, |
| 164 |
KDK_Key_S = 0x53, |
| 165 |
KDK_Key_T = 0x54, |
| 166 |
KDK_Key_U = 0x55, |
| 167 |
KDK_Key_V = 0x56, |
| 168 |
KDK_Key_W = 0x57, |
| 169 |
KDK_Key_X = 0x58, |
| 170 |
KDK_Key_Y = 0x59, |
| 171 |
KDK_Key_Z = 0x5a, |
| 172 |
KDK_Key_BracketLeft = 0x5b, |
| 173 |
KDK_Key_Backslash = 0x5c, |
| 174 |
KDK_Key_BracketRight = 0x5d, |
| 175 |
KDK_Key_AsciiCircum = 0x5e, |
| 176 |
KDK_Key_Underscore = 0x5f, |
| 177 |
KDK_Key_QuoteLeft = 0x60, |
| 178 |
KDK_Key_BraceLeft = 0x7b, |
| 179 |
KDK_Key_Bar = 0x7c, |
| 180 |
KDK_Key_BraceRight = 0x7d, |
| 181 |
KDK_Key_AsciiTilde = 0x7e, |
| 182 |
|
| 183 |
KDK_Key_nobreakspace = 0x0a0, |
| 184 |
KDK_Key_exclamdown = 0x0a1, |
| 185 |
KDK_Key_cent = 0x0a2, |
| 186 |
KDK_Key_sterling = 0x0a3, |
| 187 |
KDK_Key_currency = 0x0a4, |
| 188 |
KDK_Key_yen = 0x0a5, |
| 189 |
KDK_Key_brokenbar = 0x0a6, |
| 190 |
KDK_Key_section = 0x0a7, |
| 191 |
KDK_Key_diaeresis = 0x0a8, |
| 192 |
KDK_Key_copyright = 0x0a9, |
| 193 |
KDK_Key_ordfeminine = 0x0aa, |
| 194 |
KDK_Key_guillemotleft = 0x0ab, // left angle quotation mark |
| 195 |
KDK_Key_notsign = 0x0ac, |
| 196 |
KDK_Key_hyphen = 0x0ad, |
| 197 |
KDK_Key_registered = 0x0ae, |
| 198 |
KDK_Key_macron = 0x0af, |
| 199 |
KDK_Key_degree = 0x0b0, |
| 200 |
KDK_Key_plusminus = 0x0b1, |
| 201 |
KDK_Key_twosuperior = 0x0b2, |
| 202 |
KDK_Key_threesuperior = 0x0b3, |
| 203 |
KDK_Key_acute = 0x0b4, |
| 204 |
KDK_Key_mu = 0x0b5, |
| 205 |
KDK_Key_paragraph = 0x0b6, |
| 206 |
KDK_Key_periodcentered = 0x0b7, |
| 207 |
KDK_Key_cedilla = 0x0b8, |
| 208 |
KDK_Key_onesuperior = 0x0b9, |
| 209 |
KDK_Key_masculine = 0x0ba, |
| 210 |
KDK_Key_guillemotright = 0x0bb, // right angle quotation mark |
| 211 |
KDK_Key_onequarter = 0x0bc, |
| 212 |
KDK_Key_onehalf = 0x0bd, |
| 213 |
KDK_Key_threequarters = 0x0be, |
| 214 |
KDK_Key_questiondown = 0x0bf, |
| 215 |
KDK_Key_Agrave = 0x0c0, |
| 216 |
KDK_Key_Aacute = 0x0c1, |
| 217 |
KDK_Key_Acircumflex = 0x0c2, |
| 218 |
KDK_Key_Atilde = 0x0c3, |
| 219 |
KDK_Key_Adiaeresis = 0x0c4, |
| 220 |
KDK_Key_Aring = 0x0c5, |
| 221 |
KDK_Key_AE = 0x0c6, |
| 222 |
KDK_Key_Ccedilla = 0x0c7, |
| 223 |
KDK_Key_Egrave = 0x0c8, |
| 224 |
KDK_Key_Eacute = 0x0c9, |
| 225 |
KDK_Key_Ecircumflex = 0x0ca, |
| 226 |
KDK_Key_Ediaeresis = 0x0cb, |
| 227 |
KDK_Key_Igrave = 0x0cc, |
| 228 |
KDK_Key_Iacute = 0x0cd, |
| 229 |
KDK_Key_Icircumflex = 0x0ce, |
| 230 |
KDK_Key_Idiaeresis = 0x0cf, |
| 231 |
KDK_Key_ETH = 0x0d0, |
| 232 |
KDK_Key_Ntilde = 0x0d1, |
| 233 |
KDK_Key_Ograve = 0x0d2, |
| 234 |
KDK_Key_Oacute = 0x0d3, |
| 235 |
KDK_Key_Ocircumflex = 0x0d4, |
| 236 |
KDK_Key_Otilde = 0x0d5, |
| 237 |
KDK_Key_Odiaeresis = 0x0d6, |
| 238 |
KDK_Key_multiply = 0x0d7, |
| 239 |
KDK_Key_Ooblique = 0x0d8, |
| 240 |
KDK_Key_Ugrave = 0x0d9, |
| 241 |
KDK_Key_Uacute = 0x0da, |
| 242 |
KDK_Key_Ucircumflex = 0x0db, |
| 243 |
KDK_Key_Udiaeresis = 0x0dc, |
| 244 |
KDK_Key_Yacute = 0x0dd, |
| 245 |
KDK_Key_THORN = 0x0de, |
| 246 |
KDK_Key_ssharp = 0x0df, |
| 247 |
KDK_Key_division = 0x0f7, |
| 248 |
KDK_Key_ydiaeresis = 0x0ff, |
| 249 |
|
| 250 |
// International input method support (X keycode - 0xEE00, the |
| 251 |
// definition follows Qt/Embedded 2.3.7) Only interesting if |
| 252 |
// you are writing your own input method |
| 253 |
|
| 254 |
// International & multi-key character composition |
| 255 |
KDK_Key_AltGr = 0x01001103, |
| 256 |
KDK_Key_Multi_key = 0x01001120, // Multi-key character compose |
| 257 |
KDK_Key_Codeinput = 0x01001137, |
| 258 |
KDK_Key_SingleCandidate = 0x0100113c, |
| 259 |
KDK_Key_MultipleCandidate = 0x0100113d, |
| 260 |
KDK_Key_PreviousCandidate = 0x0100113e, |
| 261 |
|
| 262 |
// Misc Functions |
| 263 |
KDK_Key_Mode_switch = 0x0100117e, // Character set switch |
| 264 |
// Key_script_switch = 0x0100117e, // Alias for mode_switch |
| 265 |
|
| 266 |
// Japanese keyboard support |
| 267 |
KDK_Key_Kanji = 0x01001121, // Kanji, Kanji convert |
| 268 |
KDK_Key_Muhenkan = 0x01001122, // Cancel Conversion |
| 269 |
// Key_Henkan_Mode = 0x01001123, // Start/Stop Conversion |
| 270 |
KDK_Key_Henkan = 0x01001123, // Alias for Henkan_Mode |
| 271 |
KDK_Key_Romaji = 0x01001124, // to Romaji |
| 272 |
KDK_Key_Hiragana = 0x01001125, // to Hiragana |
| 273 |
KDK_Key_Katakana = 0x01001126, // to Katakana |
| 274 |
KDK_Key_Hiragana_Katakana = 0x01001127, // Hiragana/Katakana toggle |
| 275 |
KDK_Key_Zenkaku = 0x01001128, // to Zenkaku |
| 276 |
KDK_Key_Hankaku = 0x01001129, // to Hankaku |
| 277 |
KDK_Key_Zenkaku_Hankaku = 0x0100112a, // Zenkaku/Hankaku toggle |
| 278 |
KDK_Key_Touroku = 0x0100112b, // Add to Dictionary |
| 279 |
KDK_Key_Massyo = 0x0100112c, // Delete from Dictionary |
| 280 |
KDK_Key_Kana_Lock = 0x0100112d, // Kana Lock |
| 281 |
KDK_Key_Kana_Shift = 0x0100112e, // Kana Shift |
| 282 |
KDK_Key_Eisu_Shift = 0x0100112f, // Alphanumeric Shift |
| 283 |
KDK_Key_Eisu_toggle = 0x01001130, // Alphanumeric toggle |
| 284 |
// Key_Kanji_Bangou = 0x01001137, // Codeinput |
| 285 |
// Key_Zen_Koho = 0x0100113d, // Multiple/All Candidate(s) |
| 286 |
// Key_Mae_Koho = 0x0100113e, // Previous Candidate |
| 287 |
|
| 288 |
// Korean keyboard support |
| 289 |
// |
| 290 |
// In fact, many Korean users need only 2 keys, Key_Hangul and |
| 291 |
// Key_Hangul_Hanja. But rest of the keys are good for future. |
| 292 |
|
| 293 |
KDK_Key_Hangul = 0x01001131, // Hangul start/stop(toggle) |
| 294 |
KDK_Key_Hangul_Start = 0x01001132, // Hangul start |
| 295 |
KDK_Key_Hangul_End = 0x01001133, // Hangul end, English start |
| 296 |
KDK_Key_Hangul_Hanja = 0x01001134, // Start Hangul->Hanja Conversion |
| 297 |
KDK_Key_Hangul_Jamo = 0x01001135, // Hangul Jamo mode |
| 298 |
KDK_Key_Hangul_Romaja = 0x01001136, // Hangul Romaja mode |
| 299 |
// Key_Hangul_Codeinput = 0x01001137, // Hangul code input mode |
| 300 |
KDK_Key_Hangul_Jeonja = 0x01001138, // Jeonja mode |
| 301 |
KDK_Key_Hangul_Banja = 0x01001139, // Banja mode |
| 302 |
KDK_Key_Hangul_PreHanja = 0x0100113a, // Pre Hanja conversion |
| 303 |
KDK_Key_Hangul_PostHanja = 0x0100113b, // Post Hanja conversion |
| 304 |
// Key_Hangul_SingleCandidate = 0x0100113c, // Single candidate |
| 305 |
// Key_Hangul_MultipleCandidate = 0x0100113d, // Multiple candidate |
| 306 |
// Key_Hangul_PreviousCandidate = 0x0100113e, // Previous candidate |
| 307 |
KDK_Key_Hangul_Special = 0x0100113f, // Special symbols |
| 308 |
// Key_Hangul_switch = 0x0100117e, // Alias for mode_switch |
| 309 |
|
| 310 |
// dead keys (X keycode - 0xED00 to avoid the conflict) |
| 311 |
KDK_Key_Dead_Grave = 0x01001250, |
| 312 |
KDK_Key_Dead_Acute = 0x01001251, |
| 313 |
KDK_Key_Dead_Circumflex = 0x01001252, |
| 314 |
KDK_Key_Dead_Tilde = 0x01001253, |
| 315 |
KDK_Key_Dead_Macron = 0x01001254, |
| 316 |
KDK_Key_Dead_Breve = 0x01001255, |
| 317 |
KDK_Key_Dead_Abovedot = 0x01001256, |
| 318 |
KDK_Key_Dead_Diaeresis = 0x01001257, |
| 319 |
KDK_Key_Dead_Abovering = 0x01001258, |
| 320 |
KDK_Key_Dead_Doubleacute = 0x01001259, |
| 321 |
KDK_Key_Dead_Caron = 0x0100125a, |
| 322 |
KDK_Key_Dead_Cedilla = 0x0100125b, |
| 323 |
KDK_Key_Dead_Ogonek = 0x0100125c, |
| 324 |
KDK_Key_Dead_Iota = 0x0100125d, |
| 325 |
KDK_Key_Dead_Voiced_Sound = 0x0100125e, |
| 326 |
KDK_Key_Dead_Semivoiced_Sound = 0x0100125f, |
| 327 |
KDK_Key_Dead_Belowdot = 0x01001260, |
| 328 |
KDK_Key_Dead_Hook = 0x01001261, |
| 329 |
KDK_Key_Dead_Horn = 0x01001262, |
| 330 |
KDK_Key_Dead_Stroke = 0x01001263, |
| 331 |
KDK_Key_Dead_Abovecomma = 0x01001264, |
| 332 |
KDK_Key_Dead_Abovereversedcomma = 0x01001265, |
| 333 |
KDK_Key_Dead_Doublegrave = 0x01001266, |
| 334 |
KDK_Key_Dead_Belowring = 0x01001267, |
| 335 |
KDK_Key_Dead_Belowmacron = 0x01001268, |
| 336 |
KDK_Key_Dead_Belowcircumflex = 0x01001269, |
| 337 |
KDK_Key_Dead_Belowtilde = 0x0100126a, |
| 338 |
KDK_Key_Dead_Belowbreve = 0x0100126b, |
| 339 |
KDK_Key_Dead_Belowdiaeresis = 0x0100126c, |
| 340 |
KDK_Key_Dead_Invertedbreve = 0x0100126d, |
| 341 |
KDK_Key_Dead_Belowcomma = 0x0100126e, |
| 342 |
KDK_Key_Dead_Currency = 0x0100126f, |
| 343 |
KDK_Key_Dead_a = 0x01001280, |
| 344 |
KDK_Key_Dead_A = 0x01001281, |
| 345 |
KDK_Key_Dead_e = 0x01001282, |
| 346 |
KDK_Key_Dead_E = 0x01001283, |
| 347 |
KDK_Key_Dead_i = 0x01001284, |
| 348 |
KDK_Key_Dead_I = 0x01001285, |
| 349 |
KDK_Key_Dead_o = 0x01001286, |
| 350 |
KDK_Key_Dead_O = 0x01001287, |
| 351 |
KDK_Key_Dead_u = 0x01001288, |
| 352 |
KDK_Key_Dead_U = 0x01001289, |
| 353 |
KDK_Key_Dead_Small_Schwa = 0x0100128a, |
| 354 |
KDK_Key_Dead_Capital_Schwa = 0x0100128b, |
| 355 |
KDK_Key_Dead_Greek = 0x0100128c, |
| 356 |
KDK_Key_Dead_Lowline = 0x01001290, |
| 357 |
KDK_Key_Dead_Aboveverticalline = 0x01001291, |
| 358 |
KDK_Key_Dead_Belowverticalline = 0x01001292, |
| 359 |
KDK_Key_Dead_Longsolidusoverlay = 0x01001293, |
| 360 |
|
| 361 |
// multimedia/internet keys - ignored by default - see QKeyEvent c'tor |
| 362 |
KDK_Key_Back = 0x01000061, |
| 363 |
KDK_Key_Forward = 0x01000062, |
| 364 |
KDK_Key_Stop = 0x01000063, |
| 365 |
KDK_Key_Refresh = 0x01000064, |
| 366 |
KDK_Key_VolumeDown = 0x01000070, |
| 367 |
KDK_Key_VolumeMute = 0x01000071, |
| 368 |
KDK_Key_VolumeUp = 0x01000072, |
| 369 |
KDK_Key_BassBoost = 0x01000073, |
| 370 |
KDK_Key_BassUp = 0x01000074, |
| 371 |
KDK_Key_BassDown = 0x01000075, |
| 372 |
KDK_Key_TrebleUp = 0x01000076, |
| 373 |
KDK_Key_TrebleDown = 0x01000077, |
| 374 |
KDK_Key_MediaPlay = 0x01000080, |
| 375 |
KDK_Key_MediaStop = 0x01000081, |
| 376 |
KDK_Key_MediaPrevious = 0x01000082, |
| 377 |
KDK_Key_MediaNext = 0x01000083, |
| 378 |
KDK_Key_MediaRecord = 0x01000084, |
| 379 |
KDK_Key_MediaPause = 0x1000085, |
| 380 |
KDK_Key_MediaTogglePlayPause = 0x1000086, |
| 381 |
KDK_Key_HomePage = 0x01000090, |
| 382 |
KDK_Key_Favorites = 0x01000091, |
| 383 |
KDK_Key_Search = 0x01000092, |
| 384 |
KDK_Key_Standby = 0x01000093, |
| 385 |
KDK_Key_OpenUrl = 0x01000094, |
| 386 |
KDK_Key_LaunchMail = 0x010000a0, |
| 387 |
KDK_Key_LaunchMedia = 0x010000a1, |
| 388 |
KDK_Key_Launch0 = 0x010000a2, |
| 389 |
KDK_Key_Launch1 = 0x010000a3, |
| 390 |
KDK_Key_Launch2 = 0x010000a4, |
| 391 |
KDK_Key_Launch3 = 0x010000a5, |
| 392 |
KDK_Key_Launch4 = 0x010000a6, |
| 393 |
KDK_Key_Launch5 = 0x010000a7, |
| 394 |
KDK_Key_Launch6 = 0x010000a8, |
| 395 |
KDK_Key_Launch7 = 0x010000a9, |
| 396 |
KDK_Key_Launch8 = 0x010000aa, |
| 397 |
KDK_Key_Launch9 = 0x010000ab, |
| 398 |
KDK_Key_LaunchA = 0x010000ac, |
| 399 |
KDK_Key_LaunchB = 0x010000ad, |
| 400 |
KDK_Key_LaunchC = 0x010000ae, |
| 401 |
KDK_Key_LaunchD = 0x010000af, |
| 402 |
KDK_Key_LaunchE = 0x010000b0, |
| 403 |
KDK_Key_LaunchF = 0x010000b1, |
| 404 |
KDK_Key_MonBrightnessUp = 0x010000b2, |
| 405 |
KDK_Key_MonBrightnessDown = 0x010000b3, |
| 406 |
KDK_Key_KeyboardLightOnOff = 0x010000b4, |
| 407 |
KDK_Key_KeyboardBrightnessUp = 0x010000b5, |
| 408 |
KDK_Key_KeyboardBrightnessDown = 0x010000b6, |
| 409 |
KDK_Key_PowerOff = 0x010000b7, |
| 410 |
KDK_Key_WakeUp = 0x010000b8, |
| 411 |
KDK_Key_Eject = 0x010000b9, |
| 412 |
KDK_Key_ScreenSaver = 0x010000ba, |
| 413 |
KDK_Key_WWW = 0x010000bb, |
| 414 |
KDK_Key_Memo = 0x010000bc, |
| 415 |
KDK_Key_LightBulb = 0x010000bd, |
| 416 |
KDK_Key_Shop = 0x010000be, |
| 417 |
KDK_Key_History = 0x010000bf, |
| 418 |
KDK_Key_AddFavorite = 0x010000c0, |
| 419 |
KDK_Key_HotLinks = 0x010000c1, |
| 420 |
KDK_Key_BrightnessAdjust = 0x010000c2, |
| 421 |
KDK_Key_Finance = 0x010000c3, |
| 422 |
KDK_Key_Community = 0x010000c4, |
| 423 |
KDK_Key_AudioRewind = 0x010000c5, // Media rewind |
| 424 |
KDK_Key_BackForward = 0x010000c6, |
| 425 |
KDK_Key_ApplicationLeft = 0x010000c7, |
| 426 |
KDK_Key_ApplicationRight = 0x010000c8, |
| 427 |
KDK_Key_Book = 0x010000c9, |
| 428 |
KDK_Key_CD = 0x010000ca, |
| 429 |
KDK_Key_Calculator = 0x010000cb, |
| 430 |
KDK_Key_ToDoList = 0x010000cc, |
| 431 |
KDK_Key_ClearGrab = 0x010000cd, |
| 432 |
KDK_Key_Close = 0x010000ce, |
| 433 |
KDK_Key_Copy = 0x010000cf, |
| 434 |
KDK_Key_Cut = 0x010000d0, |
| 435 |
KDK_Key_Display = 0x010000d1, // Output switch key |
| 436 |
KDK_Key_DOS = 0x010000d2, |
| 437 |
KDK_Key_Documents = 0x010000d3, |
| 438 |
KDK_Key_Excel = 0x010000d4, |
| 439 |
KDK_Key_Explorer = 0x010000d5, |
| 440 |
KDK_Key_Game = 0x010000d6, |
| 441 |
KDK_Key_Go = 0x010000d7, |
| 442 |
KDK_Key_iTouch = 0x010000d8, |
| 443 |
KDK_Key_LogOff = 0x010000d9, |
| 444 |
KDK_Key_Market = 0x010000da, |
| 445 |
KDK_Key_Meeting = 0x010000db, |
| 446 |
KDK_Key_MenuKB = 0x010000dc, |
| 447 |
KDK_Key_MenuPB = 0x010000dd, |
| 448 |
KDK_Key_MySites = 0x010000de, |
| 449 |
KDK_Key_News = 0x010000df, |
| 450 |
KDK_Key_OfficeHome = 0x010000e0, |
| 451 |
KDK_Key_Option = 0x010000e1, |
| 452 |
KDK_Key_Paste = 0x010000e2, |
| 453 |
KDK_Key_Phone = 0x010000e3, |
| 454 |
KDK_Key_Calendar = 0x010000e4, |
| 455 |
KDK_Key_Reply = 0x010000e5, |
| 456 |
KDK_Key_Reload = 0x010000e6, |
| 457 |
KDK_Key_RotateWindows = 0x010000e7, |
| 458 |
KDK_Key_RotationPB = 0x010000e8, |
| 459 |
KDK_Key_RotationKB = 0x010000e9, |
| 460 |
KDK_Key_Save = 0x010000ea, |
| 461 |
KDK_Key_Send = 0x010000eb, |
| 462 |
KDK_Key_Spell = 0x010000ec, |
| 463 |
KDK_Key_SplitScreen = 0x010000ed, |
| 464 |
KDK_Key_Support = 0x010000ee, |
| 465 |
KDK_Key_TaskPane = 0x010000ef, |
| 466 |
KDK_Key_Terminal = 0x010000f0, |
| 467 |
KDK_Key_Tools = 0x010000f1, |
| 468 |
KDK_Key_Travel = 0x010000f2, |
| 469 |
KDK_Key_Video = 0x010000f3, |
| 470 |
KDK_Key_Word = 0x010000f4, |
| 471 |
KDK_Key_Xfer = 0x010000f5, |
| 472 |
KDK_Key_ZoomIn = 0x010000f6, |
| 473 |
KDK_Key_ZoomOut = 0x010000f7, |
| 474 |
KDK_Key_Away = 0x010000f8, |
| 475 |
KDK_Key_Messenger = 0x010000f9, |
| 476 |
KDK_Key_WebCam = 0x010000fa, |
| 477 |
KDK_Key_MailForward = 0x010000fb, |
| 478 |
KDK_Key_Pictures = 0x010000fc, |
| 479 |
KDK_Key_Music = 0x010000fd, |
| 480 |
KDK_Key_Battery = 0x010000fe, |
| 481 |
KDK_Key_Bluetooth = 0x010000ff, |
| 482 |
KDK_Key_WLAN = 0x01000100, |
| 483 |
KDK_Key_UWB = 0x01000101, |
| 484 |
KDK_Key_AudioForward = 0x01000102, // Media fast-forward |
| 485 |
KDK_Key_AudioRepeat = 0x01000103, // Toggle repeat mode |
| 486 |
KDK_Key_AudioRandomPlay = 0x01000104, // Toggle shuffle mode |
| 487 |
KDK_Key_Subtitle = 0x01000105, |
| 488 |
KDK_Key_AudioCycleTrack = 0x01000106, |
| 489 |
KDK_Key_Time = 0x01000107, |
| 490 |
KDK_Key_Hibernate = 0x01000108, |
| 491 |
KDK_Key_View = 0x01000109, |
| 492 |
KDK_Key_TopMenu = 0x0100010a, |
| 493 |
KDK_Key_PowerDown = 0x0100010b, |
| 494 |
KDK_Key_Suspend = 0x0100010c, |
| 495 |
KDK_Key_ContrastAdjust = 0x0100010d, |
| 496 |
|
| 497 |
KDK_Key_LaunchG = 0x0100010e, |
| 498 |
KDK_Key_LaunchH = 0x0100010f, |
| 499 |
|
| 500 |
KDK_Key_TouchpadToggle = 0x01000110, |
| 501 |
KDK_Key_TouchpadOn = 0x01000111, |
| 502 |
KDK_Key_TouchpadOff = 0x01000112, |
| 503 |
|
| 504 |
KDK_Key_MicMute = 0x01000113, |
| 505 |
|
| 506 |
KDK_Key_Red = 0x01000114, |
| 507 |
KDK_Key_Green = 0x01000115, |
| 508 |
KDK_Key_Yellow = 0x01000116, |
| 509 |
KDK_Key_Blue = 0x01000117, |
| 510 |
|
| 511 |
KDK_Key_ChannelUp = 0x01000118, |
| 512 |
KDK_Key_ChannelDown = 0x01000119, |
| 513 |
|
| 514 |
KDK_Key_Guide = 0x0100011a, |
| 515 |
KDK_Key_Info = 0x0100011b, |
| 516 |
KDK_Key_Settings = 0x0100011c, |
| 517 |
|
| 518 |
KDK_Key_MicVolumeUp = 0x0100011d, |
| 519 |
KDK_Key_MicVolumeDown = 0x0100011e, |
| 520 |
|
| 521 |
KDK_Key_New = 0x01000120, |
| 522 |
KDK_Key_Open = 0x01000121, |
| 523 |
KDK_Key_Find = 0x01000122, |
| 524 |
KDK_Key_Undo = 0x01000123, |
| 525 |
KDK_Key_Redo = 0x01000124, |
| 526 |
KDK_Key_RFKill = 0x01000125, |
| 527 |
KDK_Key_MediaLast = 0x0100ffff, |
| 528 |
|
| 529 |
// Keypad navigation keys |
| 530 |
KDK_Key_Select = 0x01010000, |
| 531 |
KDK_Key_Yes = 0x01010001, |
| 532 |
KDK_Key_No = 0x01010002, |
| 533 |
|
| 534 |
// Newer misc keys |
| 535 |
KDK_Key_Cancel = 0x01020001, |
| 536 |
KDK_Key_Printer = 0x01020002, |
| 537 |
KDK_Key_Execute = 0x01020003, |
| 538 |
KDK_Key_Sleep = 0x01020004, |
| 539 |
KDK_Key_Play = 0x01020005, // Not the same as Key_MediaPlay |
| 540 |
KDK_Key_Zoom = 0x01020006, |
| 541 |
// Key_Jisho = 0x01020007, // IME: Dictionary key |
| 542 |
// Key_Oyayubi_Left = 0x01020008, // IME: Left Oyayubi key |
| 543 |
// Key_Oyayubi_Right = 0x01020009, // IME: Right Oyayubi key |
| 544 |
KDK_Key_Exit = 0x0102000a, |
| 545 |
|
| 546 |
// Device keys |
| 547 |
KDK_Key_Context1 = 0x01100000, |
| 548 |
KDK_Key_Context2 = 0x01100001, |
| 549 |
KDK_Key_Context3 = 0x01100002, |
| 550 |
KDK_Key_Context4 = 0x01100003, |
| 551 |
KDK_Key_Call = 0x01100004, // set absolute state to in a call (do not toggle state) |
| 552 |
KDK_Key_Hangup = 0x01100005, // set absolute state to hang up (do not toggle state) |
| 553 |
KDK_Key_Flip = 0x01100006, |
| 554 |
KDK_Key_ToggleCallHangup = 0x01100007, // a toggle key for answering, or hanging up, based on current call state |
| 555 |
KDK_Key_VoiceDial = 0x01100008, |
| 556 |
KDK_Key_LastNumberRedial = 0x01100009, |
| 557 |
|
| 558 |
KDK_Key_Camera = 0x01100020, |
| 559 |
KDK_Key_CameraFocus = 0x01100021, |
| 560 |
|
| 561 |
KDK_Key_unknown = 0x01ffffff |
| 562 |
}; |
| 563 |
|
| 564 |
enum KDK_KeyboardModifier |
| 565 |
{ |
| 566 |
KDK_NoModifier = 0x00000000, |
| 567 |
KDK_ShiftModifier = 0x02000000, |
| 568 |
KDK_ControlModifier = 0x04000000, |
| 569 |
KDK_AltModifier = 0x08000000, |
| 570 |
KDK_MetaModifier = 0x10000000, |
| 571 |
KDK_KeypadModifier = 0x20000000, |
| 572 |
KDK_GroupSwitchModifier = 0x40000000, |
| 573 |
// Do not extend the mask to include 0x01000000 |
| 574 |
KDK_KeyboardModifierMask = 0xfe000000 |
| 575 |
}; |
| 576 |
|
| 577 |
// 控制键 |
| 578 |
enum KDK_Modifier |
| 579 |
{ |
| 580 |
KDK_META = KDK_MetaModifier, |
| 581 |
KDK_SHIFT = KDK_ShiftModifier, |
| 582 |
KDK_CTRL = KDK_ControlModifier, |
| 583 |
KDK_ALT = KDK_AltModifier, |
| 584 |
KDK_MODIFIER_MASK = KDK_KeyboardModifierMask, |
| 585 |
KDK_UNICODE_ACCEL = 0x00000000 |
| 586 |
}; |
| 587 |
|
| 588 |
#endif // LIBKEYMAP_H |