Debian Codegraph @

test/data/symbols/shift

raw
1 // Cancel CapsLock when a Shift key is pressed.
2 partial modifier_keys
3 xkb_symbols "breaks_caps" {
4 key <LFSH> {
5 type = "ALPHABETIC",
6 [Shift_L, Shift_L],
7 [
8 SetMods(modifiers=Shift),
9 SetMods(modifiers=Shift+Lock,clearLocks)
10 ]
11 };
12 key <RTSH> {
13 type = "ALPHABETIC",
14 [Shift_R, Shift_R],
15 [
16 SetMods(modifiers=Shift),
17 SetMods(modifiers=Shift+Lock,clearLocks)
18 ]
19 };
20 };
21
22
23 // Toggle CapsLock when pressed together with the other Shift key.
24 partial modifier_keys
25 xkb_symbols "lshift_both_capslock" {
26 key <LFSH> {
27 type[Group1]="TWO_LEVEL",
28 symbols[Group1] = [ Shift_L, Caps_Lock ]
29 };
30 };
31 // Toggle CapsLock when pressed together with the other Shift key.
32 partial modifier_keys
33 xkb_symbols "rshift_both_capslock" {
34 key <RTSH> {
35 type[Group1]="TWO_LEVEL",
36 symbols[Group1] = [ Shift_R, Caps_Lock ]
37 };
38 };
39 partial modifier_keys
40 xkb_symbols "both_capslock" {
41 include "shift(lshift_both_capslock)"
42 include "shift(rshift_both_capslock)"
43 };
44
45
46 // Set CapsLock when pressed with the other Shift key, release it when pressed alone.
47 partial modifier_keys
48 xkb_symbols "lshift_both_capslock_cancel" {
49 key <LFSH> {
50 type[Group1]="ALPHABETIC",
51 symbols[Group1] = [ Shift_L, Caps_Lock ]
52 };
53 };
54 // Set CapsLock when pressed with the other Shift key, release it when pressed alone.
55 partial modifier_keys
56 xkb_symbols "rshift_both_capslock_cancel" {
57 key <RTSH> {
58 type[Group1]="ALPHABETIC",
59 symbols[Group1] = [ Shift_R, Caps_Lock ]
60 };
61 };
62 partial modifier_keys
63 xkb_symbols "both_capslock_cancel" {
64 include "shift(lshift_both_capslock_cancel)"
65 include "shift(rshift_both_capslock_cancel)"
66 };
67
68
69 // Toggle ShiftLock when pressed together with the other Shift key.
70 partial modifier_keys
71 xkb_symbols "lshift_both_shiftlock" {
72 key <LFSH> {
73 type[Group1]="TWO_LEVEL",
74 symbols[Group1] = [ Shift_L, Shift_Lock ]
75 };
76 };
77 // Toggle ShiftLock when pressed together with the other Shift key.
78 partial modifier_keys
79 xkb_symbols "rshift_both_shiftlock" {
80 key <RTSH> {
81 type[Group1]="TWO_LEVEL",
82 symbols[Group1] = [ Shift_R, Shift_Lock ]
83 };
84 };
85 partial modifier_keys
86 xkb_symbols "both_shiftlock" {
87 include "shift(lshift_both_shiftlock)"
88 include "shift(rshift_both_shiftlock)"
89 };