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