Home | History | Annotate | Download | only in keycodes
      1 // translation from evdev scancodes to something resembling xfree86 keycodes.
      2 
      3 default xkb_keycodes "evdev" {
      4 	minimum = 8;
      5 	maximum = 255;
      6 
      7         # Added for pc105 compatibility
      8         <LSGT> = 94;
      9 
     10 	<TLDE> = 49;
     11 	<AE01> = 10;
     12 	<AE02> = 11;
     13 	<AE03> = 12;
     14 	<AE04> = 13;
     15 	<AE05> = 14;
     16 	<AE06> = 15;
     17 	<AE07> = 16;
     18 	<AE08> = 17;
     19 	<AE09> = 18;
     20 	<AE10> = 19;
     21 	<AE11> = 20;
     22 	<AE12> = 21;
     23 	<BKSP> = 22;
     24 
     25 	<TAB> = 23;
     26 	<AD01> = 24;
     27 	<AD02> = 25;
     28 	<AD03> = 26;
     29 	<AD04> = 27;
     30 	<AD05> = 28;
     31 	<AD06> = 29;
     32 	<AD07> = 30;
     33 	<AD08> = 31;
     34 	<AD09> = 32;
     35 	<AD10> = 33;
     36 	<AD11> = 34;
     37 	<AD12> = 35;
     38 	<BKSL> = 51;
     39 	alias <AC12> = <BKSL>;
     40 	<RTRN> = 36;
     41 
     42 	<CAPS> = 66;
     43 	<AC01> = 38;
     44 	<AC02> = 39;
     45 	<AC03> = 40;
     46 	<AC04> = 41;
     47 	<AC05> = 42;
     48 	<AC06> = 43;
     49 	<AC07> = 44;
     50 	<AC08> = 45;
     51 	<AC09> = 46;
     52 	<AC10> = 47;
     53 	<AC11> = 48;
     54 
     55 	<LFSH> = 50;
     56 	<AB01> = 52;
     57 	<AB02> = 53;
     58 	<AB03> = 54;
     59 	<AB04> = 55;
     60 	<AB05> = 56;
     61 	<AB06> = 57;
     62 	<AB07> = 58;
     63 	<AB08> = 59;
     64 	<AB09> = 60;
     65 	<AB10> = 61;
     66 	<RTSH> = 62;
     67 
     68 	<LALT> = 64;
     69 	<LCTL> = 37;
     70 	<SPCE> = 65;
     71 	<RCTL> = 105;
     72 	<RALT> = 108;
     73 	// Microsoft keyboard extra keys
     74 	<LWIN> = 133;
     75 	<RWIN> = 134;
     76 	<COMP> = 135;
     77 	alias <MENU> = <COMP>;
     78 
     79 	<ESC> = 9;
     80 	<FK01> = 67;
     81 	<FK02> = 68;
     82 	<FK03> = 69;
     83 	<FK04> = 70;
     84 	<FK05> = 71;
     85 	<FK06> = 72;
     86 	<FK07> = 73;
     87 	<FK08> = 74;
     88 	<FK09> = 75;
     89 	<FK10> = 76;
     90 	<FK11> = 95;
     91 	<FK12> = 96;
     92 
     93 	<PRSC> = 107;
     94 	// <SYRQ> = 107;
     95 	<SCLK> = 78;
     96 	<PAUS> = 127;
     97 	// <BRK> = 419;
     98 
     99 	<INS> = 118;
    100 	<HOME> = 110;
    101 	<PGUP> = 112;
    102 	<DELE> = 119;
    103 	<END> = 115;
    104 	<PGDN> = 117;
    105 
    106 	<UP> = 111;
    107 	<LEFT> = 113;
    108 	<DOWN> = 116;
    109 	<RGHT> = 114;
    110 
    111 	<NMLK> = 77;
    112 	<KPDV> = 106;
    113 	<KPMU> = 63;
    114 	<KPSU> = 82;
    115 
    116 	<KP7> = 79;
    117 	<KP8> = 80;
    118 	<KP9> = 81;
    119 	<KPAD> = 86;
    120 
    121 	<KP4> = 83;
    122 	<KP5> = 84;
    123 	<KP6> = 85;
    124 
    125 	<KP1> = 87;
    126 	<KP2> = 88;
    127 	<KP3> = 89;
    128 	<KPEN> = 104;
    129 
    130 	<KP0> = 90;
    131 	<KPDL> = 91;
    132 	<KPEQ> = 125;
    133 
    134 	<FK13> = 191;
    135 	<FK14> = 192;
    136 	<FK15> = 193;
    137 	<FK16> = 194;
    138 	<FK17> = 195;
    139 	<FK18> = 196;
    140 	<FK19> = 197;
    141 	<FK20> = 198;
    142 	<FK21> = 199;
    143 	<FK22> = 200;
    144 	<FK23> = 201;
    145 	<FK24> = 202;
    146 
    147 	// Keys that are generated on Japanese keyboards
    148 
    149 	//<HZTG> =  93;	// Hankaku/Zenkakau toggle - not actually used
    150 	alias <HZTG> = <TLDE>;
    151 	<HKTG> = 101;	// Hiragana/Katakana toggle
    152 	<AB11> = 97;	// backslash/underscore
    153 	<HENK> = 100;	// Henkan
    154 	<MUHE> = 102;	// Muhenkan
    155 	<AE13> = 132;	// Yen
    156 	<KATA> =  98;	// Katakana
    157 	<HIRA> =  99;	// Hiragana
    158 	<JPCM> = 103;	// KPJPComma
    159 	//<RO>   =  97;	// Romaji
    160 
    161 	// Keys that are generated on Korean keyboards
    162 
    163 	<HNGL> = 130;	// Hangul Latin toggle
    164 	<HJCV> = 131;	// Hangul to Hanja conversion
    165 
    166 	// Solaris compatibility
    167 
    168 	alias <LMTA> = <LWIN>;
    169 	alias <RMTA> = <RWIN>;
    170 	<MUTE> = 121;
    171 	<VOL-> = 122;
    172 	<VOL+> = 123;
    173 	<POWR> = 124;
    174 	<STOP> = 136;
    175 	<AGAI> = 137;
    176 	<PROP> = 138;
    177 	<UNDO> = 139;
    178 	<FRNT> = 140;
    179 	<COPY> = 141;
    180 	<OPEN> = 142;
    181 	<PAST> = 143;
    182 	<FIND> = 144;
    183 	<CUT>  = 145;
    184 	<HELP> = 146;
    185 
    186 	// Extended keys that may be generated on "Internet" keyboards.
    187 	// evdev has standardize names for these.
    188 
    189 	<LNFD> = 109;	// #define KEY_LINEFEED            101
    190 	<I120> = 120;	// #define KEY_MACRO               112
    191 	<I126> = 126;	// #define KEY_KPPLUSMINUS         118
    192 	<I128> = 128;   // #define KEY_SCALE               120
    193 	<I129> = 129;	// #define KEY_KPCOMMA             121
    194 	<I147> = 147;	// #define KEY_MENU                139
    195 	<I148> = 148;	// #define KEY_CALC                140
    196 	<I149> = 149;	// #define KEY_SETUP               141
    197 	<I150> = 150;	// #define KEY_SLEEP               142
    198 	<I151> = 151;	// #define KEY_WAKEUP              143
    199 	<I152> = 152;	// #define KEY_FILE                144
    200 	<I153> = 153;	// #define KEY_SENDFILE            145
    201 	<I154> = 154;	// #define KEY_DELETEFILE          146
    202 	<I155> = 155;	// #define KEY_XFER                147
    203 	<I156> = 156;	// #define KEY_PROG1               148
    204 	<I157> = 157;	// #define KEY_PROG2               149
    205 	<I158> = 158;	// #define KEY_WWW                 150
    206 	<I159> = 159;	// #define KEY_MSDOS               151
    207 	<I160> = 160;	// #define KEY_COFFEE              152
    208 	<I161> = 161;	// #define KEY_DIRECTION           153
    209 	<I162> = 162;	// #define KEY_CYCLEWINDOWS        154
    210 	<I163> = 163;	// #define KEY_MAIL                155
    211 	<I164> = 164;	// #define KEY_BOOKMARKS           156
    212 	<I165> = 165;	// #define KEY_COMPUTER            157
    213 	<I166> = 166;	// #define KEY_BACK                158
    214 	<I167> = 167;	// #define KEY_FORWARD             159
    215 	<I168> = 168;	// #define KEY_CLOSECD             160
    216 	<I169> = 169;	// #define KEY_EJECTCD             161
    217 	<I170> = 170;	// #define KEY_EJECTCLOSECD        162
    218 	<I171> = 171;	// #define KEY_NEXTSONG            163
    219 	<I172> = 172;	// #define KEY_PLAYPAUSE           164
    220 	<I173> = 173;	// #define KEY_PREVIOUSSONG        165
    221 	<I174> = 174;	// #define KEY_STOPCD              166
    222 	<I175> = 175;	// #define KEY_RECORD              167
    223 	<I176> = 176;	// #define KEY_REWIND              168
    224 	<I177> = 177;	// #define KEY_PHONE               169
    225 	<I178> = 178;	// #define KEY_ISO                 170
    226 	<I179> = 179;	// #define KEY_CONFIG              171
    227 	<I180> = 180;	// #define KEY_HOMEPAGE            172
    228 	<I181> = 181;	// #define KEY_REFRESH             173
    229 	<I182> = 182;	// #define KEY_EXIT                174
    230 	<I183> = 183;	// #define KEY_MOVE                175
    231 	<I184> = 184;	// #define KEY_EDIT                176
    232 	<I185> = 185;	// #define KEY_SCROLLUP            177
    233 	<I186> = 186;	// #define KEY_SCROLLDOWN          178
    234 	<I187> = 187;	// #define KEY_KPLEFTPAREN         179
    235 	<I188> = 188;	// #define KEY_KPRIGHTPAREN        180
    236 	<I189> = 189;	// #define KEY_NEW                 181
    237 	<I190> = 190;	// #define KEY_REDO                182
    238 	<I208> = 208;	// #define KEY_PLAYCD              200
    239 	<I209> = 209;	// #define KEY_PAUSECD             201
    240 	<I210> = 210;	// #define KEY_PROG3               202
    241 	<I211> = 211;	// #define KEY_PROG4               203 conflicts with AB11
    242 	<I212> = 212;   // #define KEY_DASHBOARD           204
    243 	<I213> = 213;	// #define KEY_SUSPEND             205
    244 	<I214> = 214;	// #define KEY_CLOSE               206
    245 	<I215> = 215;	// #define KEY_PLAY                207
    246 	<I216> = 216;	// #define KEY_FASTFORWARD         208
    247 	<I217> = 217;	// #define KEY_BASSBOOST           209
    248 	<I218> = 218;	// #define KEY_PRINT               210
    249 	<I219> = 219;	// #define KEY_HP                  211
    250 	<I220> = 220;	// #define KEY_CAMERA              212
    251 	<I221> = 221;	// #define KEY_SOUND               213
    252 	<I222> = 222;	// #define KEY_QUESTION            214
    253 	<I223> = 223;	// #define KEY_EMAIL               215
    254 	<I224> = 224;	// #define KEY_CHAT                216
    255 	<I225> = 225;	// #define KEY_SEARCH              217
    256 	<I226> = 226;	// #define KEY_CONNECT             218
    257 	<I227> = 227;	// #define KEY_FINANCE             219
    258 	<I228> = 228;	// #define KEY_SPORT               220
    259 	<I229> = 229;	// #define KEY_SHOP                221
    260 	<I230> = 230;	// #define KEY_ALTERASE            222
    261 	<I231> = 231;	// #define KEY_CANCEL              223
    262 	<I232> = 232;	// #define KEY_BRIGHTNESSDOWN      224
    263 	<I233> = 233;	// #define KEY_BRIGHTNESSUP        225
    264 	<I234> = 234;	// #define KEY_MEDIA               226
    265 	<I235> = 235;	// #define KEY_SWITCHVIDEOMODE     227
    266 	<I236> = 236;	// #define KEY_KBDILLUMTOGGLE      228
    267 	<I237> = 237;	// #define KEY_KBDILLUMDOWN        229
    268 	<I238> = 238;	// #define KEY_KBDILLUMUP          230
    269 	<I239> = 239;	// #define KEY_SEND                231
    270 	<I240> = 240;	// #define KEY_REPLY               232
    271 	<I241> = 241;	// #define KEY_FORWARDMAIL         233
    272 	<I242> = 242;	// #define KEY_SAVE                234
    273 	<I243> = 243;	// #define KEY_DOCUMENTS           235
    274 	<I244> = 244;	// #define KEY_BATTERY             236
    275 	<I245> = 245;	// #define KEY_BLUETOOTH           237
    276 	<I246> = 246;	// #define KEY_WLAN                238
    277 	<I247> = 247;	// #define KEY_UWB                 239
    278 	<I248> = 248;	// #define KEY_UNKNOWN             240
    279 	<I249> = 249;	// #define KEY_VIDEO_NEXT          241
    280 	<I250> = 250;	// #define KEY_VIDEO_PREV          242
    281 	<I251> = 251;	// #define KEY_BRIGHTNESS_CYCLE    243
    282 	<I252> = 252;	// #define KEY_BRIGHTNESS_ZERO     244
    283 	<I253> = 253;	// #define KEY_DISPLAY_OFF         245
    284 
    285 	// Fake keycodes for virtual keys
    286 	<LVL3> =   92;
    287 	<MDSW> =   203;
    288 	<ALT>  =   204;
    289 	<META> =   205;
    290 	<SUPR> =   206;
    291 	<HYPR> =   207;
    292 
    293 	indicator 1  = "Caps Lock";
    294 	indicator 2  = "Num Lock";
    295 	indicator 3  = "Scroll Lock";
    296 	indicator 4  = "Compose";
    297 	indicator 5  = "Kana";
    298 	indicator 6  = "Sleep";
    299 	indicator 7  = "Suspend";
    300 	indicator 8  = "Mute";
    301 	indicator 9  = "Misc";
    302 	indicator 10 = "Mail";
    303 	indicator 11 = "Charging";
    304 
    305 	alias <ALGR> = <RALT>;
    306 
    307 	// For Brazilian ABNT2
    308 	alias <KPPT> = <I129>;
    309 };
    310 
    311 // PC98
    312 xkb_keycodes "pc98" {
    313     include "evdev(evdev)"
    314 };
    315