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 ]
105 key <SCLK> { [ Scroll_Lock ] };
108 symbols[Group1]= [ Pause, Break ]
110 key <INS> { [ Insert ] };
111 key <HOME> { [ Home ] };
112 key <PGUP> { [ Prior ] };
113 key <DELE> { [ Delete ] };
114 key <END> { [ End ] };
115 key <PGDN> { [ Next ] };
118 key <LEFT> { [ Left ] };
119 key <DOWN> { [ Down ] };
120 key <RGHT> { [ Right ] };
122 // End "Editing" section, begin "Keypad"
123 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
125 // Ungrab cancels server/keyboard/pointer grabs
128 symbols[Group1]= [ KP_Divide, XF86_Ungrab ]
131 // ClsGrb kills whichever client has a grab in effect
134 symbols[Group1]= [ KP_Multiply, XF86_ClearGrab ]
137 // -VMode switches to the previous video mode
140 symbols[Group1]= [ KP_Subtract, XF86_Prev_VMode ]
143 key <KP7> { [ KP_Home, KP_7 ] };
144 key <KP8> { [ KP_Up, KP_8 ] };
145 key <KP9> { [ KP_Prior, KP_9 ] };
147 // +VMode switches to the next video mode
150 symbols[Group1]= [ KP_Add, XF86_Next_VMode ]
153 key <KP4> { [ KP_Left, KP_4 ] };
154 key <KP5> { [ KP_Begin, KP_5 ] };
155 key <KP6> { [ KP_Right, KP_6 ] };
157 key <KP1> { [ KP_End, KP_1 ] };
158 key <KP2> { [ KP_Down, KP_2 ] };
159 key <KP3> { [ KP_Next, KP_3 ] };
160 key <KPEN> { [ KP_Enter ] };
161 key <KPEQ> { [ KP_Equal ] };
163 key <KP0> { [ KP_Insert, KP_0 ] };
164 key <KPDL> { [ KP_Delete, KP_Decimal ] };
165 // End "Keypad" section
167 // begin modifier mappings
168 modifier_map Shift { Shift_L, Shift_R };
169 modifier_map Lock { Caps_Lock, ISO_Lock };
170 modifier_map Control{ Control_L, Control_R };
171 modifier_map Mod2 { Num_Lock };
173 // Fake keys for virtual<->real modifiers mapping
174 key <LVL3> { [ ISO_Level3_Shift ] };
175 key <MDSW> { [ Mode_switch ] };
176 modifier_map Mod5 { <LVL3>, <MDSW> };
178 key <ALT> { [ NoSymbol, Alt_L ] };
179 modifier_map Mod1 { <ALT>, <LALT> };
181 key <META> { [ NoSymbol, Meta_L ] };
182 modifier_map Mod1 { <META> };
184 key <SUPR> { [ NoSymbol, Super_L ] };
185 modifier_map Mod4 { <SUPR> };
187 key <HYPR> { [ NoSymbol, Hyper_L ] };
188 modifier_map Mod4 { <HYPR> };
191 // definition for the PC-AT type 101 key keyboard
192 xkb_symbols "pc101" {
194 key <LALT> { [ Alt_L, Meta_L ] };
195 key <RALT> { [ Alt_R, Meta_R ] };
199 // definition for the extra key on 102-key keyboards
200 xkb_symbols "pc102" {
202 key <LSGT> { [ less, greater, bar, brokenbar ] };
205 // definition for the extra keys on 104-key "Windows95" keyboards
207 xkb_symbols "pc104" {
209 key <LALT> { [ Alt_L, Meta_L ] };
210 key <RALT> { [ Alt_R, Meta_R ] };
211 key <LWIN> { [ Super_L ] };
212 key <RWIN> { [ Super_R ] };
213 key <MENU> { [ Menu ] };
217 // defintion which includes both the Windows95 keyboards _and_
218 // the extra key on most European keyboards.
219 xkb_symbols "pc105" {
221 key <LSGT> { [ less, greater, bar, brokenbar ] };
224 // common keys which can be overwritten in some layouts
225 xkb_symbols "common" {
227 // Alphanumeric section
228 key <TLDE> { [ grave, asciitilde ] };
229 key <AE01> { [ 1, exclam ] };
230 key <AE02> { [ 2, at ] };
231 key <AE03> { [ 3, numbersign ] };
232 key <AE04> { [ 4, dollar ] };
233 key <AE05> { [ 5, percent ] };
234 key <AE06> { [ 6, asciicircum ] };
235 key <AE07> { [ 7, ampersand ] };
236 key <AE08> { [ 8, asterisk ] };
237 key <AE09> { [ 9, parenleft ] };
238 key <AE10> { [ 0, parenright ] };
239 key <AE11> { [ minus, underscore ] };
240 key <AE12> { [ equal, plus ] };
242 key <BKSL> { [ backslash, bar ] };
243 key <SPCE> { [ space ] };
246 key <KPDL> { [ KP_Delete, KP_Decimal ] };
248 // extra keys on 104-key "Windows95" keyboards
249 key <LWIN> { [ Super_L ] };
250 key <RWIN> { [ Super_R ] };
251 key <MENU> { [ Menu ] };
253 // the extra key on most European keyboards
254 key <LSGT> { [ less, greater, bar, brokenbar ] };