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