Debian Codegraph @

test/data/symbols/latch

raw
1 default partial alphanumeric_keys
2 xkb_symbols "modifiers" {
3 name[Group1] = "Test latching behavior";
4
5 virtual_modifiers Alt=Mod1, LevelThree;
6
7 key <AE01> { [ 1, exclam, onesuperior, exclamdown, plus ], type[Group1]="CTRL+ALT"};
8
9 key <AD01> { [ q, Q ], type[Group1] = "ALPHABETIC" };
10
11 key <LFSH> {
12 symbols[Group1] = [ Shift_L ],
13 actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock=true,clearLocks=true) ]
14 };
15
16 key <RTSH> {
17 symbols[Group1] = [ Shift_R ],
18 actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock=false,clearLocks=false) ]
19 };
20
21 key <LCTL> {
22 symbols[Group1] = [ Control_L ],
23 actions[Group1] = [ LatchMods(modifiers=Control) ]
24 };
25
26 key <LALT> {
27 type[Group1] = "ONE_LEVEL",
28 symbols[Group1] = [ Alt_L ],
29 actions[Group1] = [ LatchMods(modifiers=Alt) ]
30 };
31
32 key <RALT> {
33 type[Group1] = "ONE_LEVEL",
34 symbols[Group1] = [ ISO_Level3_Latch ],
35 actions[Group1] = [ LatchMods(modifiers=LevelThree,latchToLock=true,clearLocks=true) ]
36 };
37
38 key <MENU> {
39 type[Group1] = "ONE_LEVEL",
40 symbols[Group1] = [ ISO_Level3_Latch ],
41 actions[Group1] = [ LatchMods(modifiers=LevelThree,latchToLock=false,clearLocks=false) ]
42 };
43
44 key <FK01> { [XF86_Switch_VT_1], type[Group1] = "ONE_LEVEL" };
45 key <FK02> { [ISO_Group_Shift], type[Group1] = "ONE_LEVEL" };
46
47 key <LSGT> { [ ISO_Level3_Lock ], type[Group1] = "ONE_LEVEL" };
48
49 key <CAPS> { [ ISO_Group_Latch ] };
50 };