make partials partials
[xorg/xkeyboard-config] / types / numpad
1
2 partial default xkb_types "pc" {
3     type "KEYPAD" {
4         modifiers = Shift+NumLock;
5         map[None] = Level1;
6         map[Shift] = Level2;
7         map[NumLock] = Level2;
8         map[Shift+NumLock] = Level1;
9         level_name[Level1] = "Base";
10         level_name[Level2] = "Number";
11     };
12     include "extra(keypad)"
13 };
14
15 // On Mac keypads, level 1 and 2 are swapped
16 partial xkb_types "mac" {
17     type "KEYPAD" {
18         modifiers = Shift+NumLock;
19         map[None] = Level2;
20         map[Shift] = Level1;
21         map[NumLock] = Level1;
22         map[Shift+NumLock] = Level2;
23         level_name[Level2] = "Base";
24         level_name[Level1] = "Number";
25     };
26     include "extra(mac_keypad)"
27 };
28
29 partial xkb_types "microsoft" {
30     type "KEYPAD" {
31         modifiers = Shift+NumLock;
32         map[None] = Level1;
33         preserve[Shift] = Shift;
34         map[NumLock] = Level2;
35         level_name[Level1] = "Base";
36         level_name[Level2] = "Number";
37     };
38     include "extra(keypad)"
39 };
40