4 // $XFree86: xc/programs/xkbcomp/symbols/pc,v 1.9 2003/06/09 19:59:46 dawes Exp $
6 partial hidden alphanumeric_keys modifier_keys
9 key <ESC> { [ Escape ] };
11 // Alphanumeric section
12 key <TLDE> { [ grave, asciitilde ] };
13 key <AE01> { [ 1, exclam ] };
14 key <AE02> { [ 2, at ] };
15 key <AE03> { [ 3, numbersign ] };
16 key <AE04> { [ 4, dollar ] };
17 key <AE05> { [ 5, percent ] };
18 key <AE06> { [ 6, asciicircum ] };
19 key <AE07> { [ 7, ampersand ] };
20 key <AE08> { [ 8, asterisk ] };
21 key <AE09> { [ 9, parenleft ] };
22 key <AE10> { [ 0, parenright ] };
23 key <AE11> { [ minus, underscore ] };
24 key <AE12> { [ equal, plus ] };
28 symbols[Group1]= [ BackSpace, Terminate_Server ]
31 key <TAB> { [ Tab, ISO_Left_Tab ] };
32 key <RTRN> { [ Return ] };
34 key <CAPS> { [ Caps_Lock ] };
36 key <LFSH> { [ Shift_L ] };
37 key <BKSL> { [ backslash, bar ] };
39 key <LCTL> { [ Control_L ] };
40 key <SPCE> { [ space ] };
42 key <RTSH> { [ Shift_R ] };
43 key <LALT> { [ Alt_L ] };
44 key <RCTL> { [ Control_R ] };
45 key <RALT> { [ Alt_R ] };
47 // End alphanumeric section
49 // Begin "Function" section
52 symbols[Group1]= [ F1, XF86_Switch_VT_1 ]
56 symbols[Group1]= [ F2, XF86_Switch_VT_2 ]
60 symbols[Group1]= [ F3, XF86_Switch_VT_3 ]
64 symbols[Group1]= [ F4, XF86_Switch_VT_4 ]
68 symbols[Group1]= [ F5, XF86_Switch_VT_5 ]
72 symbols[Group1]= [ F6, XF86_Switch_VT_6 ]
76 symbols[Group1]= [ F7, XF86_Switch_VT_7 ]
80 symbols[Group1]= [ F8, XF86_Switch_VT_8 ]
84 symbols[Group1]= [ F9, XF86_Switch_VT_9 ]
88 symbols[Group1]= [ F10, XF86_Switch_VT_10 ]
92 symbols[Group1]= [ F11, XF86_Switch_VT_11 ]
96 symbols[Group1]= [ F12, XF86_Switch_VT_12 ]
98 // End "Function" section
100 // Begin "Editing" section
103 symbols[Group1]= [ Print, Sys_Req ]
107 symbols[Group1]= [ Print, Sys_Req ]
109 key <SCLK> { [ Scroll_Lock ] };
112 symbols[Group1]= [ Pause, Break ]
116 symbols[Group1]= [ Pause, Break ]
118 key <INS> { [ Insert ] };
119 key <HOME> { [ Home ] };
120 key <PGUP> { [ Prior ] };
121 key <DELE> { [ Delete ] };
122 key <END> { [ End ] };
123 key <PGDN> { [ Next ] };
126 key <LEFT> { [ Left ] };
127 key <DOWN> { [ Down ] };
128 key <RGHT> { [ Right ] };
130 // End "Editing" section, begin "Keypad"
131 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
133 // Ungrab cancels server/keyboard/pointer grabs
136 symbols[Group1]= [ KP_Divide, XF86_Ungrab ]
139 // ClsGrb kills whichever client has a grab in effect
142 symbols[Group1]= [ KP_Multiply, XF86_ClearGrab ]
145 // -VMode switches to the previous video mode
148 symbols[Group1]= [ KP_Subtract, XF86_Prev_VMode ]
151 key <KP7> { [ KP_Home, KP_7 ] };
152 key <KP8> { [ KP_Up, KP_8 ] };
153 key <KP9> { [ KP_Prior, KP_9 ] };
155 // +VMode switches to the next video mode
158 symbols[Group1]= [ KP_Add, XF86_Next_VMode ]
161 key <KP4> { [ KP_Left, KP_4 ] };
162 key <KP5> { [ KP_Begin, KP_5 ] };
163 key <KP6> { [ KP_Right, KP_6 ] };
165 key <KP1> { [ KP_End, KP_1 ] };
166 key <KP2> { [ KP_Down, KP_2 ] };
167 key <KP3> { [ KP_Next, KP_3 ] };
168 key <KPEN> { [ KP_Enter ] };
169 key <KPEQ> { [ KP_Equal ] };
171 key <KP0> { [ KP_Insert, KP_0 ] };
172 key <KPDL> { [ KP_Delete, KP_Decimal ] };
173 // End "Keypad" section
175 // begin modifier mappings
176 modifier_map Shift { Shift_L, Shift_R };
177 modifier_map Lock { Caps_Lock, ISO_Lock };
178 modifier_map Control{ Control_L, Control_R };
179 modifier_map Mod2 { Num_Lock };
181 // Fake keys for virtual<->real modifiers mapping
182 key <LVL3> { [ ISO_Level3_Shift ] };
183 key <MDSW> { [ Mode_switch ] };
184 modifier_map Mod5 { <LVL3>, <MDSW> };
186 key <ALT> { [ NoSymbol, Alt_L ] };
187 modifier_map Mod1 { <ALT>, <LALT> };
189 key <META> { [ NoSymbol, Meta_L ] };
190 modifier_map Mod1 { <META> };
192 key <SUPR> { [ NoSymbol, Super_L ] };
193 modifier_map Mod4 { <SUPR> };
195 key <HYPR> { [ NoSymbol, Hyper_L ] };
196 modifier_map Mod4 { <HYPR> };
199 // definition for the PC-AT type 101 key keyboard
200 xkb_symbols "pc101" {
202 key <LALT> { [ Alt_L, Meta_L ] };
203 key <RALT> { [ Alt_R, Meta_R ] };
207 // definition for the extra key on 102-key keyboards
208 xkb_symbols "pc102" {
210 key <LSGT> { [ less, greater, bar, brokenbar ] };
213 // definition for the extra keys on 104-key "Windows95" keyboards
215 xkb_symbols "pc104" {
217 key <LALT> { [ Alt_L, Meta_L ] };
218 key <RALT> { [ Alt_R, Meta_R ] };
219 key <LWIN> { [ Super_L ] };
220 key <RWIN> { [ Super_R ] };
221 key <MENU> { [ Menu ] };
225 // defintion which includes both the Windows95 keyboards _and_
226 // the extra key on most European keyboards.
227 xkb_symbols "pc105" {
229 key <LSGT> { [ less, greater, bar, brokenbar ] };
232 // common keys which can be overwritten in some layouts
233 xkb_symbols "common" {
235 // Alphanumeric section
236 key <TLDE> { [ grave, asciitilde ] };
237 key <AE01> { [ 1, exclam ] };
238 key <AE02> { [ 2, at ] };
239 key <AE03> { [ 3, numbersign ] };
240 key <AE04> { [ 4, dollar ] };
241 key <AE05> { [ 5, percent ] };
242 key <AE06> { [ 6, asciicircum ] };
243 key <AE07> { [ 7, ampersand ] };
244 key <AE08> { [ 8, asterisk ] };
245 key <AE09> { [ 9, parenleft ] };
246 key <AE10> { [ 0, parenright ] };
247 key <AE11> { [ minus, underscore ] };
248 key <AE12> { [ equal, plus ] };
250 key <BKSL> { [ backslash, bar ] };
251 key <SPCE> { [ space ] };
254 key <KPDL> { [ KP_Delete, KP_Decimal ] };
256 // extra keys on 104-key "Windows95" keyboards
257 key <LWIN> { [ Super_L ] };
258 key <RWIN> { [ Super_R ] };
259 key <MENU> { [ Menu ] };
261 // the extra key on most European keyboards
262 key <LSGT> { [ less, greater, bar, brokenbar ] };