2 // $Xorg: keypad,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
4 partial hidden keypad_keys
5 xkb_symbols "overlay" {
6 include "keypad(overlay1)"
9 partial hidden keypad_keys
10 xkb_symbols "overlay1" {
12 // Begin "Keypad" section
14 key <KP7> { [ KP_Home ], overlay1=<KO7> };
15 key <KP8> { [ KP_Up ], overlay1=<KO8> };
16 key <KP9> { [ KP_Prior ], overlay1=<KO9> };
18 key <KP4> { [ KP_Left ], overlay1=<KO4> };
19 key <KP5> { [ KP_Begin ], overlay1=<KO5> };
20 key <KP6> { [ KP_Right ], overlay1=<KO6> };
22 key <KP1> { [ KP_End ], overlay1=<KO1> };
23 key <KP2> { [ KP_Down ], overlay1=<KO2> };
24 key <KP3> { [ KP_Next ], overlay1=<KO3> };
26 key <KP0> { [ KP_Insert ], overlay1=<KO0> };
27 key <KPDL> { [ KP_Delete ], overlay1=<KODL> };
29 key <KO7> { [ KP_7 ] };
30 key <KO8> { [ KP_8 ] };
31 key <KO9> { [ KP_9 ] };
33 key <KO4> { [ KP_4 ] };
34 key <KO5> { [ KP_5 ] };
35 key <KO6> { [ KP_6 ] };
37 key <KO1> { [ KP_1 ] };
38 key <KO2> { [ KP_2 ] };
39 key <KO3> { [ KP_3 ] };
41 key <KO0> { [ KP_0 ] };
42 key <KODL> { [ KP_Decimal ] };
44 // End "Keypad" section
47 partial hidden keypad_keys
48 xkb_symbols "overlay2" {
50 // Begin "Keypad" section
52 key <KP7> { [ KP_Home ], overlay2=<KO7> };
53 key <KP8> { [ KP_Up ], overlay2=<KO8> };
54 key <KP9> { [ KP_Prior ], overlay2=<KO9> };
56 key <KP4> { [ KP_Left ], overlay2=<KO4> };
57 key <KP5> { [ KP_Begin ], overlay2=<KO5> };
58 key <KP6> { [ KP_Right ], overlay2=<KO6> };
60 key <KP1> { [ KP_End ], overlay2=<KO1> };
61 key <KP2> { [ KP_Down ], overlay2=<KO2> };
62 key <KP3> { [ KP_Next ], overlay2=<KO3> };
64 key <KP0> { [ KP_Insert ], overlay2=<KO0> };
65 key <KPDL> { [ KP_Delete ], overlay2=<KODL> };
67 key <KO7> { [ KP_7 ] };
68 key <KO8> { [ KP_8 ] };
69 key <KO9> { [ KP_9 ] };
71 key <KO4> { [ KP_4 ] };
72 key <KO5> { [ KP_5 ] };
73 key <KO6> { [ KP_6 ] };
75 key <KO1> { [ KP_1 ] };
76 key <KO2> { [ KP_2 ] };
77 key <KO3> { [ KP_3 ] };
79 key <KO0> { [ KP_0 ] };
80 key <KODL> { [ KP_Decimal ] };
82 // End "Keypad" section
85 partial hidden default keypad_keys
87 // Ungrab cancels server/keyboard/pointer grabs
90 symbols[Group1]= [ KP_Divide, XF86_Ungrab ]
93 // ClsGrb kills whichever client has a grab in effect
96 symbols[Group1]= [ KP_Multiply, XF86_ClearGrab ]
99 // -VMode switches to the previous video mode
102 symbols[Group1]= [ KP_Subtract, XF86_Prev_VMode ]
105 key <KP7> { [ KP_Home, KP_7 ] };
106 key <KP8> { [ KP_Up, KP_8 ] };
107 key <KP9> { [ KP_Prior, KP_9 ] };
109 // +VMode switches to the next video mode
112 symbols[Group1]= [ KP_Add, XF86_Next_VMode ]
115 key <KP4> { [ KP_Left, KP_4 ] };
116 key <KP5> { [ KP_Begin, KP_5 ] };
117 key <KP6> { [ KP_Right, KP_6 ] };
119 key <KP1> { [ KP_End, KP_1 ] };
120 key <KP2> { [ KP_Down, KP_2 ] };
121 key <KP3> { [ KP_Next, KP_3 ] };
122 key <KPEN> { [ KP_Enter ] };
123 key <KPEQ> { [ KP_Equal ] };
125 key <KP0> { [ KP_Insert, KP_0 ] };
126 key <KPDL> { [ KP_Delete, KP_Decimal ] };
129 // Some national standards use comma on the keypad instead of decimal dot
131 xkb_symbols "comma" {
132 key <KPDL> { [ KP_Delete, KP_Separator ] };
135 // Default is decimal dot
138 key <KPDL> { [ KP_Delete, KP_Decimal ] };
142 // Legacy PC keypad definition
143 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
145 xkb_symbols "legacy" {
147 include "keypad(core)"
148 include "keypad(legacymath)"
149 include "keypad(legacynumber)"
153 // Complete new keypad definition
154 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
158 include "keypad(core)"
159 include "keypad(ossmath)"
160 include "keypad(ossnumber)"
164 // Latin9 restriction of new keypad definition
165 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
167 xkb_symbols "oss_latin9" {
169 include "keypad(core)"
170 include "keypad(ossmath_latin9)"
171 include "keypad(legacynumber)"
173 key <KPDL> { type="FOUR_LEVEL_MIXED_KEYPAD",
174 [ KP_Delete, period, comma, nobreakspace ] }; // <delete> . , ⍽ (no-break space)
177 // Keypad keys nobody changes
178 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
182 modifier_map Mod2 { Num_Lock };
184 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
185 key <KPEN> { [ KP_Enter ] };
186 key <KPEQ> { [ KP_Equal ] };
190 // Legacy keypad math area
191 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
193 // ┏━━━━━┱─────┬─────┬─────┐
194 // ┃Num ┃ ₁ │ ₂ │ ₃ │ ₁ <XF86_Ungrab>
195 // ┃Lock⇭┃ / │ * │ - │ ₂ <XF86_ClearGrab>
196 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
197 // │ ₄ │ ₄ <XF86_Next_VMode>
204 xkb_symbols "legacymath" {
206 key.type[Group1]="CTRL+ALT" ;
208 key <KPDV> { [ KP_Divide, XF86_Ungrab ] }; // / <XF86_Ungrab>
209 key <KPMU> { [ KP_Multiply, XF86_ClearGrab ] }; // * <XF86_ClearGrab>
210 key <KPSU> { [ KP_Subtract, XF86_Prev_VMode ] }; // - <XF86_Prev_VMode>
212 key <KPAD> { [ KP_Add, XF86_Next_VMode ] }; // + <XF86_Next_VMode>
217 // Keypad math area with non-CS operators
218 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
220 // ┏━━━━━┱─────┬─────┬─────┐
221 // ┃Num ┃ ∕ ₁ │ . ₂ │ − ₃ │ ₁ <XF86_Ungrab>
222 // ┃Lock⇭┃ / ÷ │ * × │ - − │ ₂ <XF86_ClearGrab>
223 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
224 // │ + ₄ │ ₄ <XF86_Next_VMode>
228 // │ + + │ 3 Shift+Level3 ⇧⇮
229 // ╆━━━━━┪ 4 Ctrl+Alt
231 xkb_symbols "ossmath" {
233 key.type[Group1]="FOUR_LEVEL_X" ;
235 key <KPDV> { [ KP_Divide, 0x1002215, 0x10000F7, XF86_Ungrab ] }; // / ∕ ÷ <XF86_Ungrab>
236 key <KPMU> { [ KP_Multiply, 0x10022C5, 0x10000D7, XF86_ClearGrab ] }; // * ⋅ × <XF86_ClearGrab>
237 key <KPSU> { [ KP_Subtract, 0x1002212, 0x1002212, XF86_Prev_VMode ] }; // - − − <XF86_Prev_VMode>
239 key <KPAD> { [ KP_Add, 0x100002B, 0x100002B, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
244 // Keypad math area with non-CS operators, restricted to latin9
245 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
247 // ┏━━━━━┱─────┬─────┬─────┐
248 // ┃Num ┃ / ₁ │ · ₂ │ - ₃ │ ₁ <XF86_Ungrab>
249 // ┃Lock⇭┃ / ÷ │ * × │ - - │ ₂ <XF86_ClearGrab>
250 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
251 // │ + ₄ │ ₄ <XF86_Next_VMode>
255 // │ + + │ 3 Shift+Level3 ⇧⇮
256 // ╆━━━━━┪ 4 Ctrl+Alt
258 xkb_symbols "ossmath_latin9" {
260 key.type[Group1]="FOUR_LEVEL_X";
262 key <KPDV> { [ KP_Divide, slash, division, XF86_Ungrab ] }; // / / ÷ <XF86_Ungrab>
263 key <KPMU> { [ KP_Multiply, periodcentered, multiply, XF86_ClearGrab ] }; // * · × <XF86_ClearGrab>
264 key <KPSU> { [ KP_Subtract, minus, minus, XF86_Prev_VMode ] }; // - - - <XF86_Prev_VMode>
266 key <KPAD> { [ KP_Add, plus, plus, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
270 // Legacy keypad number area
271 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
276 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
277 // │ 7 │ 8 │ 9 │ ⇞ Page up
278 // │ ⇱ │ ⇧ │ ⇞ │ ⎀ Insert
279 // ├─────┼─────┼─────┤ ␥ Delete
280 // │ 4 │ 5 │ 6 │ ⇦⇧⇨⇩ Directions
282 // ├─────┼─────┼─────╆━━━━━┪
283 // │ 1 │ 2 │ 3 ┃Enter┃
284 // │ ⇲ │ ⇩ │ ⇟ ┃ ⎆ ┃ 1 None
285 // ├─────┴─────┼─────┨ ┃ 2 Num Lock ⇭
288 // └───────────┴─────┺━━━━━┛
290 xkb_symbols "legacynumber" {
292 key.type[Group1]="KEYPAD" ;
294 key <KP7> { [ KP_Home, KP_7 ] }; // <home> 7
295 key <KP8> { [ KP_Up, KP_8 ] }; // <up> 8
296 key <KP9> { [ KP_Prior, KP_9 ] }; // <prior> 9
298 key <KP4> { [ KP_Left, KP_4 ] }; // <left> 4
299 key <KP5> { [ KP_Begin, KP_5 ] }; // <begin> 5
300 key <KP6> { [ KP_Right, KP_6 ] }; // <right> 6
302 key <KP1> { [ KP_End, KP_1 ] }; // <end> 1
303 key <KP2> { [ KP_Down, KP_2 ] }; // <down> 2
304 key <KP3> { [ KP_Next, KP_3 ] }; // <next> 3
306 key <KP0> { [ KP_Insert, KP_0 ] }; // <insert> 0
307 key <KPDL> { [ KP_Delete, KP_Decimal ] }; // <delete> .
311 // Keypad number area with arrow symbols
312 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
317 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
318 // │ 7 ⇖ │ 8 ⇑ │ 9 ⇗ │ ⇞ Page up
319 // │ ⇱ ↖ │ ⇧ ↑ │ ⇞ ↗ │ ⎀ Insert
320 // ├─────┼─────┼─────┤ ␥ Delete
321 // │ 4 ⇐ │ 5 ⇔ │ 6 ⇗ │ ⇦⇧⇨⇩ Directions
322 // │ ⇦ ← │ ↔ │ ⇨ ↗ │ ⍽ narrow no-break space
323 // ├─────┼─────┼─────╆━━━━━┪
324 // │ 1 ⇙ │ 2 ⇓ │ 3 ⇘ ┃Enter┃
325 // │ ⇲ ↙ │ ⇩ ↓ │ ⇟ ↘ ┃ ⎆ ┃ 1 None
326 // ├─────┴─────┼─────┨ ┃ 2 Num Lock ⇭
327 // │ 0 ⇕ │ . ⍽ ┃ ┃ 3 Level3 ⇮
328 // │ ⎀ ↕ │ ␥ , ┃ ┃ 4 Shift+Level3 ⇧⇮
329 // └───────────┴─────┺━━━━━┛
331 xkb_symbols "ossnumber" {
333 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
335 key <KP7> { [ KP_Home, KP_7, 0x1002196, 0x10021D6 ] }; // <home> 7 ↖ ⇖
336 key <KP8> { [ KP_Up, KP_8, 0x1002191, 0x10021D1 ] }; // <up> 8 ↑ ⇑
337 key <KP9> { [ KP_Prior, KP_9, 0x1002197, 0x10021D7 ] }; // <prior> 9 ↗ ⇗
339 key <KP4> { [ KP_Left, KP_4, 0x1002190, 0x10021D0 ] }; // <left> 4 ← ⇐
340 key <KP5> { [ KP_Begin, KP_5, 0x1002194, 0x10021D4 ] }; // <begin> 5 ↔ ⇔
341 key <KP6> { [ KP_Right, KP_6, 0x1002192, 0x10021D2 ] }; // <right> 6 → ⇒
343 key <KP1> { [ KP_End, KP_1, 0x1002199, 0x10021D9 ] }; // <end> 1 ↙ ⇙
344 key <KP2> { [ KP_Down, KP_2, 0x1002193, 0x10021D3 ] }; // <down> 2 ↓ ⇓
345 key <KP3> { [ KP_Next, KP_3, 0x1002198, 0x10021D8 ] }; // <next> 3 ↘ ⇘
347 key <KP0> { [ KP_Insert, KP_0, 0x1002195, 0x10021D5 ] }; // <insert> 0 ↕ ⇕
348 // We could use KP_Decimal and KP_Separator but we do not want the locale
349 // decimal and separator symbol but locale-insensitive dot and comma
350 key <KPDL> { [ KP_Delete, period, comma, 0x100202F ] }; // <delete> . , ⍽ (narrow no-break space)