2 * Keymap for russian keyboard.
3 * Modified by Roman V. Ignatov <ignatov@minix3.ru>
8 /* scan-code !Shift Shift Alt1 Alt2 Alt+Sh Ctrl */
9 /* ==================================================================== */
10 /* 00 - none */ 0, 0, 0, 0, 0, 0,
11 /* 01 - ESC */ C('['), C('['), CA('['),CA('['),CA('['),C('['),
12 /* 02 - '1' */ '1', '!', A('1'), A('1'), A('!'), C('A'),
13 /* 03 - '2' */ '2', '@', A('2'), A('2'), A('@'), C('@'),
14 /* 04 - '3' */ '3', '#', A('3'), A('3'), A('#'), C('C'),
15 /* 05 - '4' */ '4', '$', A('4'), A('4'), A('$'), C('D'),
16 /* 06 - '5' */ '5', '%', A('5'), A('5'), A('%'), C('E'),
17 /* 07 - '6' */ '6', '^', A('6'), A('6'), A('^'), C('^'),
18 /* 08 - '7' */ '7', '&', A('7'), A('7'), A('&'), C('G'),
19 /* 09 - '8' */ '8', '*', A('8'), A('8'), A('*'), C('H'),
20 /* 10 - '9' */ '9', '(', A('9'), A('9'), A('('), C('I'),
21 /* 11 - '0' */ '0', ')', A('0'), A('0'), A(')'), C('@'),
22 /* 12 - '-' */ '-', '_', A('-'), A('-'), A('_'), C('_'),
23 /* 13 - '=' */ '=', '+', A('='), A('='), A('+'), C('@'),
24 /* 14 - BS */ C('H'), C('H'), CA('H'),CA('H'),CA('H'),0177,
25 /* 15 - TAB */ C('I'), C('I'), CA('I'),CA('I'),CA('I'),C('I'),
26 /* 16 - 'q' */ L('q'), 'Q', A(233), A('q'), A(201), C('Q'),
27 /* 17 - 'w' */ L('w'), 'W', A(246), A('w'), A(214), C('W'),
28 /* 18 - 'e' */ L('e'), 'E', A(243), A('e'), A(211), C('E'),
29 /* 19 - 'r' */ L('r'), 'R', A(234), A('r'), A(202), C('R'),
30 /* 20 - 't' */ L('t'), 'T', A(229), A('t'), A(197), C('T'),
31 /* 21 - 'y' */ L('y'), 'Y', A(237), A('y'), A(205), C('Y'),
32 /* 22 - 'u' */ L('u'), 'U', A(227), A('u'), A(195), C('U'),
33 /* 23 - 'i' */ L('i'), 'I', A(248), A('i'), A(216), C('I'),
34 /* 24 - 'o' */ L('o'), 'O', A(249), A('o'), A(217), C('O'),
35 /* 25 - 'p' */ L('p'), 'P', A(231), A('p'), A(199), C('P'),
36 /* 26 - '[' */ '[', '{', A(245), A('['), A(213), C('['),
37 /* 27 - ']' */ ']', '}', A(250), A(']'), A(218), C(']'),
38 /* 28 - CR/LF */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
39 /* 29 - Ctrl */ CTRL, CTRL, CTRL, CTRL, CTRL, CTRL,
40 /* 30 - 'a' */ L('a'), 'A', A(244), A('a'), A(212), C('A'),
41 /* 31 - 's' */ L('s'), 'S', A(251), A('s'), A(219), C('S'),
42 /* 32 - 'd' */ L('d'), 'D', A(226), A('d'), A(194), C('D'),
43 /* 33 - 'f' */ L('f'), 'F', A(224), A('f'), A(192), C('F'),
44 /* 34 - 'g' */ L('g'), 'G', A(239), A('g'), A(207), C('G'),
45 /* 35 - 'h' */ L('h'), 'H', A(240), A('h'), A(208), C('H'),
46 /* 36 - 'j' */ L('j'), 'J', A(238), A('j'), A(206), C('J'),
47 /* 37 - 'k' */ L('k'), 'K', A(235), A('k'), A(203), C('K'),
48 /* 38 - 'l' */ L('l'), 'L', A(228), A('l'), A(196), C('L'),
49 /* 39 - ';' */ ';', ':', A(230), A(';'), A(198), C('@'),
50 /* 40 - '\'' */ '\'', '"', A(253),A('\''),A(221), C('@'),
51 /* 41 - '`' */ '`', '~', A('`'), A('`'), A('~'), C('@'),
52 /* 42 - l. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
53 /* 43 - '\\' */ '\\', '|', A('\\'),A('\\'),A('|'), C('\\'),
54 /* 44 - 'z' */ L('z'), 'Z', A(255), A('z'), A(223), C('Z'),
55 /* 45 - 'x' */ L('x'), 'X', A(247), A('x'), A(215), C('X'),
56 /* 46 - 'c' */ L('c'), 'C', A(241), A('c'), A(209), C('C'),
57 /* 47 - 'v' */ L('v'), 'V', A(236), A('v'), A(204), C('V'),
58 /* 48 - 'b' */ L('b'), 'B', A(232), A('b'), A(200), C('B'),
59 /* 49 - 'n' */ L('n'), 'N', A(242), A('n'), A(210), C('N'),
60 /* 50 - 'm' */ L('m'), 'M', A(252), A('m'), A(220), C('M'),
61 /* 51 - ',' */ ',', '<', A(225), A(','), A(193), C('@'),
62 /* 52 - '.' */ '.', '>', A(254), A('.'), A(222), C('@'),
63 /* 53 - '/' */ '/', '?', A(46), A('/'), A(44), C('@'),
64 /* 54 - r. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
65 /* 55 - '*' */ '*', '*', A('*'), A('*'), A('*'), C('@'),
66 /* 56 - ALT */ ALT, ALT, ALT, ALT, ALT, ALT,
67 /* 57 - ' ' */ ' ', ' ', A(' '), A(' '), A(' '), C('@'),
68 /* 58 - CapsLck */ CALOCK, CALOCK, CALOCK, CALOCK, CALOCK, CALOCK,
69 /* 59 - F1 */ F1, SF1, AF1, AF1, ASF1, CF1,
70 /* 60 - F2 */ F2, SF2, AF2, AF2, ASF2, CF2,
71 /* 61 - F3 */ F3, SF3, AF3, AF3, ASF3, CF3,
72 /* 62 - F4 */ F4, SF4, AF4, AF4, ASF4, CF4,
73 /* 63 - F5 */ F5, SF5, AF5, AF5, ASF5, CF5,
74 /* 64 - F6 */ F6, SF6, AF6, AF6, ASF6, CF6,
75 /* 65 - F7 */ F7, SF7, AF7, AF7, ASF7, CF7,
76 /* 66 - F8 */ F8, SF8, AF8, AF8, ASF8, CF8,
77 /* 67 - F9 */ F9, SF9, AF9, AF9, ASF9, CF9,
78 /* 68 - F10 */ F10, SF10, AF10, AF10, ASF10, CF10,
79 /* 69 - NumLock */ NLOCK, NLOCK, NLOCK, NLOCK, NLOCK, NLOCK,
80 /* 70 - ScrLock */ SLOCK, SLOCK, SLOCK, SLOCK, SLOCK, SLOCK,
81 /* 71 - Home */ HOME, '7', AHOME, AHOME, A('7'), CHOME,
82 /* 72 - CurUp */ UP, '8', AUP, AUP, A('8'), CUP,
83 /* 73 - PgUp */ PGUP, '9', APGUP, APGUP, A('9'), CPGUP,
84 /* 74 - '-' */ NMIN, '-', ANMIN, ANMIN, A('-'), CNMIN,
85 /* 75 - Left */ LEFT, '4', ALEFT, ALEFT, A('4'), CLEFT,
86 /* 76 - MID */ MID, '5', AMID, AMID, A('5'), CMID,
87 /* 77 - Right */ RIGHT, '6', ARIGHT, ARIGHT, A('6'), CRIGHT,
88 /* 78 - '+' */ PLUS, '+', APLUS, APLUS, A('+'), CPLUS,
89 /* 79 - End */ END, '1', AEND, AEND, A('1'), CEND,
90 /* 80 - Down */ DOWN, '2', ADOWN, ADOWN, A('2'), CDOWN,
91 /* 81 - PgDown */ PGDN, '3', APGDN, APGDN, A('3'), CPGDN,
92 /* 82 - Insert */ INSRT, '0', AINSRT, AINSRT, A('0'), CINSRT,
93 /* 83 - Delete */ 0177, '.', A(0177),A(0177),A('.'), 0177,
94 /* 84 - Enter */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
95 /* 85 - ??? */ 0, 0, 0, 0, 0, 0,
96 /* 86 - ??? */ '<', '>', A('<'), A('|'), A('>'), C('@'),
97 /* 87 - F11 */ F11, SF11, AF11, AF11, ASF11, CF11,
98 /* 88 - F12 */ F12, SF12, AF12, AF12, ASF12, CF12,
99 /* 89 - ??? */ 0, 0, 0, 0, 0, 0,
100 /* 90 - ??? */ 0, 0, 0, 0, 0, 0,
101 /* 91 - ??? */ 0, 0, 0, 0, 0, 0,
102 /* 92 - ??? */ 0, 0, 0, 0, 0, 0,
103 /* 93 - ??? */ 0, 0, 0, 0, 0, 0,
104 /* 94 - ??? */ 0, 0, 0, 0, 0, 0,
105 /* 95 - ??? */ 0, 0, 0, 0, 0, 0,
106 /* 96 - EXT_KEY */ EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY,
107 /* 97 - ??? */ 0, 0, 0, 0, 0, 0,
108 /* 98 - ??? */ 0, 0, 0, 0, 0, 0,
109 /* 99 - ??? */ 0, 0, 0, 0, 0, 0,
110 /*100 - ??? */ 0, 0, 0, 0, 0, 0,
111 /*101 - ??? */ 0, 0, 0, 0, 0, 0,
112 /*102 - ??? */ 0, 0, 0, 0, 0, 0,
113 /*103 - ??? */ 0, 0, 0, 0, 0, 0,
114 /*104 - ??? */ 0, 0, 0, 0, 0, 0,
115 /*105 - ??? */ 0, 0, 0, 0, 0, 0,
116 /*106 - ??? */ 0, 0, 0, 0, 0, 0,
117 /*107 - ??? */ 0, 0, 0, 0, 0, 0,
118 /*108 - ??? */ 0, 0, 0, 0, 0, 0,
119 /*109 - ??? */ 0, 0, 0, 0, 0, 0,
120 /*110 - ??? */ 0, 0, 0, 0, 0, 0,
121 /*111 - ??? */ 0, 0, 0, 0, 0, 0,
122 /*112 - ??? */ 0, 0, 0, 0, 0, 0,
123 /*113 - ??? */ 0, 0, 0, 0, 0, 0,
124 /*114 - ??? */ 0, 0, 0, 0, 0, 0,
125 /*115 - ??? */ 0, 0, 0, 0, 0, 0,
126 /*116 - ??? */ 0, 0, 0, 0, 0, 0,
127 /*117 - ??? */ 0, 0, 0, 0, 0, 0,
128 /*118 - ??? */ 0, 0, 0, 0, 0, 0,
129 /*119 - ??? */ 0, 0, 0, 0, 0, 0,
130 /*120 - ??? */ 0, 0, 0, 0, 0, 0,
131 /*121 - ??? */ 0, 0, 0, 0, 0, 0,
132 /*122 - ??? */ 0, 0, 0, 0, 0, 0,
133 /*123 - ??? */ 0, 0, 0, 0, 0, 0,
134 /*124 - ??? */ 0, 0, 0, 0, 0, 0,
135 /*125 - ??? */ 0, 0, 0, 0, 0, 0,
136 /*126 - ??? */ 0, 0, 0, 0, 0, 0,
137 /*127 - ??? */ 0, 0, 0, 0, 0, 0