1// 2//Copyright (c) 1996 X Consortium 3// 4//Permission is hereby granted, free of charge, to any person obtaining 5//a copy of this software and associated documentation files (the 6//"Software"), to deal in the Software without restriction, including 7//without limitation the rights to use, copy, modify, merge, publish, 8//distribute, sublicense, and/or sell copies of the Software, and to 9//permit persons to whom the Software is furnished to do so, subject to 10//the following conditions: 11// 12//The above copyright notice and this permission notice shall be 13//included in all copies or substantial portions of the Software. 14// 15//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18//IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR 19//OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20//ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21//OTHER DEALINGS IN THE SOFTWARE. 22// 23//Except as contained in this notice, the name of the X Consortium shall 24//not be used in advertising or otherwise to promote the sale, use or 25//other dealings in this Software without prior written authorization 26//from the X Consortium. 27// 28// 29default xkb_keycodes "macintosh" { 30 include "xfree86" 31 32 <FK13> = 182; 33 <FK14> = 183; 34 <FK15> = 184; 35 <KPEQ> = 157; 36 37}; 38 39xkb_keycodes "old" { 40 41 minimum= 8; 42 maximum= 255; 43 44 <ESC> = 61; 45 <TLDE> = 58; 46 <AE01> = 26; 47 <AE02> = 27; 48 <AE03> = 28; 49 <AE04> = 29; 50 <AE05> = 31; 51 <AE06> = 30; 52 <AE07> = 34; 53 <AE08> = 36; 54 <AE09> = 33; 55 <AE10> = 37; 56 <AE11> = 35; 57 <AE12> = 32; 58 <BKSP> = 59; 59 60 <TAB> = 56; 61 <AD01> = 20; 62 <AD02> = 21; 63 <AD03> = 22; 64 <AD04> = 23; 65 <AD05> = 25; 66 <AD06> = 24; 67 <AD07> = 40; 68 <AD08> = 42; 69 <AD09> = 39; 70 <AD10> = 43; 71 <AD11> = 41; 72 <AD12> = 38; 73 <BKSL> = 50; 74 75 <CAPS> = 65; 76 <AC01> = 8; 77 <AC02> = 9; 78 <AC03> = 10; 79 <AC04> = 11; 80 <AC05> = 13; 81 <AC06> = 12; 82 <AC07> = 46; 83 <AC08> = 48; 84 <AC09> = 45; 85 <AC10> = 49; 86 <AC11> = 47; 87 <RTRN> = 44; 88 89 <LSGT> = 18; 90 <AB01> = 14; 91 <AB02> = 15; 92 <AB03> = 16; 93 <AB04> = 17; 94 <AB05> = 19; 95 <AB06> = 53; 96 <AB07> = 54; 97 <AB08> = 51; 98 <AB09> = 55; 99 <AB10> = 52; 100 101 <SPCE> = 57; 102 103 <LCTL> = 62; // Left Control 104 <LALT> = 63; // Left Option 105 <LFSH> = 64; // Left Shift 106 <RALT> = 66; // Left Command 107// <RTSH> = 131; // Right Shift 108// <RALT> = 132; // Right Command 109// <RCTL> = 133; // Right Control 110// <RMTA> = 134; // Right Option 111 112 <FK01> = 130; 113 <FK02> = 128; 114 <FK03> = 107; 115 <FK04> = 126; 116 <FK05> = 104; 117 <FK06> = 105; 118 <FK07> = 106; 119 <FK08> = 108; 120 <FK09> = 109; 121 <FK10> = 117; 122 <FK11> = 111; 123 <FK12> = 119; 124 125 <PRSC> = 113; 126 <SCLK> = 115; 127 <PAUS> = 121; 128 129 <INS> = 122; 130 <HOME> = 123; 131 <PGUP> = 124; 132 <DELE> = 125; 133 <END> = 127; 134 <PGDN> = 129; 135 136 <UP> = 70; 137 <LEFT> = 67; 138 <DOWN> = 69; 139 <RGHT> = 68; 140 141 <NMLK> = 79; 142 <KPEQ> = 89; 143 <KPDV> = 83; 144 <KPMU> = 75; 145 146 <KP7> = 97; 147 <KP8> = 99; 148 <KP9> = 100; 149 <KPSU> = 86; 150 151 <KP4> = 94; 152 <KP5> = 95; 153 <KP6> = 96; 154 <KPAD> = 77; 155 156 <KP1> = 91; 157 <KP2> = 92; 158 <KP3> = 93; 159 <KPEN> = 84; 160 161 <KP0> = 90; 162 <KPDL> = 73; 163 164 indicator 3 = "Scroll Lock"; 165 indicator 2 = "Num Lock"; 166 indicator 1 = "Caps Lock"; 167 168 alias <ALGR> = <RALT>; 169}; 170 171xkb_keycodes "hhk" { 172 include "macintosh" 173 174 <AC12> = 51; 175 176 <LWIN> = 49; 177 <EISU> = 131; 178 <KANA> = 129; 179 <RWIN> = 208; 180 181 <FK13> = 111; 182 <FK14> = 78; 183 <FK15> = 110; 184}; 185 186// Aluminium Keyboards 187xkb_keycodes "alukbd" { 188 include "xfree86" 189 190 // Fkeys missing in xfree86 keycodes 191 <FK18> = 129; 192 <FK19> = 130; 193 194 // Eject key that matches the geometry definition 195 alias <I169> = <K6C>; 196 197 // Japanese keypad separator (KPSP in base, JPCM in evdev) 198 alias <JPCM> = <KPDC>; 199}; 200 201// Aluminium Keyboards JIS 202// As of HID Usage Table v1.11, it seems there are no usages 203// for keys EISU or KANA. JIS Aluminium Keyboards overcome 204// this by outputting usages of keys Hanja and Hangul 205xkb_keycodes "jisevdev" { 206 alias <KANA> = <HJCV>; // Switch to kana mode 207 alias <EISU> = <HNGL>; // Switch to alphanumeric mode 208}; 209