2 * Keymap for Japanese 106 keyboard.
4 * Toshiya Ogawa <ogw@shizuokanet.or.jp>
5 * <GCD02425@niftyserve.or.jp>
9 * Japanese 106 keyboard has following additional 5 scan codes
10 * compared to US standard 101 keyboard.
12 * scan-code keytop effect in this keymap
13 * -------------------------------------------------------
14 * 112(0x70) KANA (ignored)
15 * 115(0x73) BackSlash mapped to '\\' and '_'
16 * 121(0x79) HENKAN (ignored)
17 * 123(0x7B) MU-HENKAN (ignored)
18 * 125(0x7D) YEN mapped to '\\' and '|'
21 #if (NR_SCAN_CODES != 0x80)
22 #error NR_SCAN_CODES mis-match
25 /* scan-code !Shift Shift Alt1 Alt2 Alt+Sh Ctrl */
26 /* ==================================================================== */
27 /* 00 - none */ 0, 0, 0, 0, 0, 0,
28 /* 01 - ESC */ C('['), C('['), CA('['),CA('['),CA('['),C('['),
29 /* 02 - '1' */ '1', '!', A('1'), A('1'), A('!'), C('A'),
30 /* 03 - '2' */ '2', '"', A('2'), A('2'), A('"'), C('B'),
31 /* 04 - '3' */ '3', '#', A('3'), A('3'), A('#'), C('C'),
32 /* 05 - '4' */ '4', '$', A('4'), A('4'), A('$'), C('D'),
33 /* 06 - '5' */ '5', '%', A('5'), A('5'), A('%'), C('E'),
34 /* 07 - '6' */ '6', '&', A('6'), A('6'), A('&'), C('F'),
35 /* 08 - '7' */ '7', '\'', A('7'), A('7'), A('\''),C('G'),
36 /* 09 - '8' */ '8', '(', A('8'), A('8'), A('('), C('H'),
37 /* 10 - '9' */ '9', ')', A('9'), A('9'), A(')'), C('I'),
38 /* 11 - '0' */ '0', '~', A('0'), A('0'), A('~'), C('@'),
39 /* 12 - '-' */ '-', '=', A('-'), A('-'), A('='), C('@'),
40 /* 13 - '^' */ '^', '~', A('^'), A('^'), A('~'), C('^'),
41 /* 14 - BS */ C('H'), C('H'), CA('H'),CA('H'),CA('H'),0177,
42 /* 15 - TAB */ C('I'), C('I'), CA('I'),CA('I'),CA('I'),C('I'),
43 /* 16 - 'q' */ L('q'), 'Q', A('q'), A('q'), A('Q'), C('Q'),
44 /* 17 - 'w' */ L('w'), 'W', A('w'), A('w'), A('W'), C('W'),
45 /* 18 - 'e' */ L('e'), 'E', A('e'), A('e'), A('E'), C('E'),
46 /* 19 - 'r' */ L('r'), 'R', A('r'), A('r'), A('R'), C('R'),
47 /* 20 - 't' */ L('t'), 'T', A('t'), A('t'), A('T'), C('T'),
48 /* 21 - 'y' */ L('y'), 'Y', A('y'), A('y'), A('Y'), C('Y'),
49 /* 22 - 'u' */ L('u'), 'U', A('u'), A('u'), A('U'), C('U'),
50 /* 23 - 'i' */ L('i'), 'I', A('i'), A('i'), A('I'), C('I'),
51 /* 24 - 'o' */ L('o'), 'O', A('o'), A('o'), A('O'), C('O'),
52 /* 25 - 'p' */ L('p'), 'P', A('p'), A('p'), A('P'), C('P'),
53 /* 26 - '@' */ '@', '`', A('@'), A('@'), A('`'), C('@'),
54 /* 27 - '[' */ '[', '{', A('['), A('['), A('{'), C('['),
55 /* 28 - Enter */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
56 /* 29 - Ctrl */ CTRL, CTRL, CTRL, CTRL, CTRL, CTRL,
57 /* 30 - 'a' */ L('a'), 'A', A('a'), A('a'), A('A'), C('A'),
58 /* 31 - 's' */ L('s'), 'S', A('s'), A('s'), A('S'), C('S'),
59 /* 32 - 'd' */ L('d'), 'D', A('d'), A('d'), A('D'), C('D'),
60 /* 33 - 'f' */ L('f'), 'F', A('f'), A('f'), A('F'), C('F'),
61 /* 34 - 'g' */ L('g'), 'G', A('g'), A('g'), A('G'), C('G'),
62 /* 35 - 'h' */ L('h'), 'H', A('h'), A('h'), A('H'), C('H'),
63 /* 36 - 'j' */ L('j'), 'J', A('j'), A('j'), A('J'), C('J'),
64 /* 37 - 'k' */ L('k'), 'K', A('k'), A('k'), A('K'), C('K'),
65 /* 38 - 'l' */ L('l'), 'L', A('l'), A('l'), A('L'), C('L'),
66 /* 39 - ';' */ ';', '+', A(';'), A(';'), A('+'), C('@'),
67 /* 40 - ':' */ ':', '*', A(':'), A(':'), A('*'), C('@'),
68 /* 41 - KANJI */ 0, 0, 0, 0, 0, 0,
69 /* 42 - l. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
70 /* 43 - ']' */ ']', '}', A(']'), A(']'), A('}'), C(']'),
71 /* 44 - 'z' */ L('z'), 'Z', A('z'), A('z'), A('Z'), C('Z'),
72 /* 45 - 'x' */ L('x'), 'X', A('x'), A('x'), A('X'), C('X'),
73 /* 46 - 'c' */ L('c'), 'C', A('c'), A('c'), A('C'), C('C'),
74 /* 47 - 'v' */ L('v'), 'V', A('v'), A('v'), A('V'), C('V'),
75 /* 48 - 'b' */ L('b'), 'B', A('b'), A('b'), A('B'), C('B'),
76 /* 49 - 'n' */ L('n'), 'N', A('n'), A('n'), A('N'), C('N'),
77 /* 50 - 'm' */ L('m'), 'M', A('m'), A('m'), A('M'), C('M'),
78 /* 51 - ',' */ ',', '<', A(','), A(','), A('<'), C('@'),
79 /* 52 - '.' */ '.', '>', A('.'), A('.'), A('>'), C('@'),
80 /* 53 - '/' */ '/', '?', A('/'), A('/'), A('?'), C('@'),
81 /* 54 - r. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
82 /* 55 - '*' */ '*', '*', A('*'), A('*'), A('*'), C('@'),
83 /* 56 - ALT */ ALT, ALT, ALT, ALT, ALT, ALT,
84 /* 57 - ' ' */ ' ', ' ', A(' '), A(' '), A(' '), C('@'),
85 /* 58 - CapsLck */ CALOCK, CALOCK, CALOCK, CALOCK, CALOCK, CALOCK,
86 /* 59 - F1 */ F1, SF1, AF1, AF1, ASF1, CF1,
87 /* 60 - F2 */ F2, SF2, AF2, AF2, ASF2, CF2,
88 /* 61 - F3 */ F3, SF3, AF3, AF3, ASF3, CF3,
89 /* 62 - F4 */ F4, SF4, AF4, AF4, ASF4, CF4,
90 /* 63 - F5 */ F5, SF5, AF5, AF5, ASF5, CF5,
91 /* 64 - F6 */ F6, SF6, AF6, AF6, ASF6, CF6,
92 /* 65 - F7 */ F7, SF7, AF7, AF7, ASF7, CF7,
93 /* 66 - F8 */ F8, SF8, AF8, AF8, ASF8, CF8,
94 /* 67 - F9 */ F9, SF9, AF9, AF9, ASF9, CF9,
95 /* 68 - F10 */ F10, SF10, AF10, AF10, ASF10, CF10,
96 /* 69 - NumLock */ NLOCK, NLOCK, NLOCK, NLOCK, NLOCK, NLOCK,
97 /* 70 - ScrLock */ SLOCK, SLOCK, SLOCK, SLOCK, SLOCK, SLOCK,
98 /* 71 - Home */ HOME, '7', AHOME, AHOME, A('7'), CHOME,
99 /* 72 - CurUp */ UP, '8', AUP, AUP, A('8'), CUP,
100 /* 73 - PgUp */ PGUP, '9', APGUP, APGUP, A('9'), CPGUP,
101 /* 74 - '-' */ NMIN, '-', ANMIN, ANMIN, A('-'), CNMIN,
102 /* 75 - Left */ LEFT, '4', ALEFT, ALEFT, A('4'), CLEFT,
103 /* 76 - MID */ MID, '5', AMID, AMID, A('5'), CMID,
104 /* 77 - Right */ RIGHT, '6', ARIGHT, ARIGHT, A('6'), CRIGHT,
105 /* 78 - '+' */ PLUS, '+', APLUS, APLUS, A('+'), CPLUS,
106 /* 79 - End */ END, '1', AEND, AEND, A('1'), CEND,
107 /* 80 - Down */ DOWN, '2', ADOWN, ADOWN, A('2'), CDOWN,
108 /* 81 - PgDown */ PGDN, '3', APGDN, APGDN, A('3'), CPGDN,
109 /* 82 - Insert */ INSRT, '0', AINSRT, AINSRT, A('0'), CINSRT,
110 /* 83 - Delete */ 0177, '.', A(0177),A(0177),A('.'), 0177,
111 /* 84 - Enter */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
112 /* 85 - ??? */ 0, 0, 0, 0, 0, 0,
113 /* 86 - ??? */ 0, 0, 0, 0, 0, 0,
114 /* 87 - F11 */ F11, SF11, AF11, AF11, ASF11, CF11,
115 /* 88 - F12 */ F12, SF12, AF12, AF12, ASF12, CF12,
116 /* 89 - ??? */ 0, 0, 0, 0, 0, 0,
117 /* 90 - ??? */ 0, 0, 0, 0, 0, 0,
118 /* 91 - ??? */ 0, 0, 0, 0, 0, 0,
119 /* 92 - ??? */ 0, 0, 0, 0, 0, 0,
120 /* 93 - ??? */ 0, 0, 0, 0, 0, 0,
121 /* 94 - ??? */ 0, 0, 0, 0, 0, 0,
122 /* 95 - ??? */ 0, 0, 0, 0, 0, 0,
123 /* 96 - EXT_KEY */ EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY,
124 /* 97 - ??? */ 0, 0, 0, 0, 0, 0,
125 /* 98 - ??? */ 0, 0, 0, 0, 0, 0,
126 /* 99 - ??? */ 0, 0, 0, 0, 0, 0,
127 /*100 - ??? */ 0, 0, 0, 0, 0, 0,
128 /*101 - ??? */ 0, 0, 0, 0, 0, 0,
129 /*102 - ??? */ 0, 0, 0, 0, 0, 0,
130 /*103 - ??? */ 0, 0, 0, 0, 0, 0,
131 /*104 - ??? */ 0, 0, 0, 0, 0, 0,
132 /*105 - ??? */ 0, 0, 0, 0, 0, 0,
133 /*106 - ??? */ 0, 0, 0, 0, 0, 0,
134 /*107 - ??? */ 0, 0, 0, 0, 0, 0,
135 /*108 - ??? */ 0, 0, 0, 0, 0, 0,
136 /*109 - ??? */ 0, 0, 0, 0, 0, 0,
137 /*110 - ??? */ 0, 0, 0, 0, 0, 0,
138 /*111 - ??? */ 0, 0, 0, 0, 0, 0,
139 /*112 - KANA */ 0, 0, 0, 0, 0, 0,
140 /*113 - ??? */ 0, 0, 0, 0, 0, 0,
141 /*114 - ??? */ 0, 0, 0, 0, 0, 0,
142 /*115 - '\\' */ '\\', '_', A('\\'),A('\\'),A('_'), C('_'),
143 /*116 - ??? */ 0, 0, 0, 0, 0, 0,
144 /*117 - ??? */ 0, 0, 0, 0, 0, 0,
145 /*118 - ??? */ 0, 0, 0, 0, 0, 0,
146 /*119 - ??? */ 0, 0, 0, 0, 0, 0,
147 /*120 - ??? */ 0, 0, 0, 0, 0, 0,
148 /*121 - HENKAN */ 0, 0, 0, 0, 0, 0,
149 /*122 - ??? */ 0, 0, 0, 0, 0, 0,
150 /*123 - MU-HENKAN*/ 0, 0, 0, 0, 0, 0,
151 /*124 - ??? */ 0, 0, 0, 0, 0, 0,
152 /*125 - YEN */ '\\', '|', A('\\'),A('\\'),A('|'), C('\\'),
153 /*126 - ??? */ 0, 0, 0, 0, 0, 0,
154 /*127 - ??? */ 0, 0, 0, 0, 0, 0