File: numpad

package info (click to toggle)
console-setup 1.28
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,584 kB
  • ctags: 243
  • sloc: perl: 8,182; sh: 2,265; makefile: 594
file content (40 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

partial default xkb_types "pc" {
    type "KEYPAD" {
	modifiers = Shift+NumLock;
	map[None] = Level1;
	map[Shift] = Level2;
	map[NumLock] = Level2;
	map[Shift+NumLock] = Level1;
	level_name[Level1] = "Base";
	level_name[Level2] = "Number";
    };
    include "extra(keypad)"
};

// On Mac keypads, level 1 and 2 are swapped
partial xkb_types "mac" {
    type "KEYPAD" {
	modifiers = Shift+NumLock;
	map[None] = Level2;
	map[Shift] = Level1;
	map[NumLock] = Level1;
	map[Shift+NumLock] = Level2;
	level_name[Level2] = "Base";
	level_name[Level1] = "Number";
    };
    include "extra(mac_keypad)"
};

partial xkb_types "microsoft" {
    type "KEYPAD" {
        modifiers = Shift+NumLock;
        map[None] = Level1;
        preserve[Shift] = Shift;
        map[NumLock] = Level2;
        level_name[Level1] = "Base";
        level_name[Level2] = "Number";
    };
    include "extra(keypad)"
};