aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/symbols/shift
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkbdata.src/symbols/shift')
-rw-r--r--xorg-server/xkbdata.src/symbols/shift22
1 files changed, 22 insertions, 0 deletions
diff --git a/xorg-server/xkbdata.src/symbols/shift b/xorg-server/xkbdata.src/symbols/shift
index eb7533f79..4bd1cd627 100644
--- a/xorg-server/xkbdata.src/symbols/shift
+++ b/xorg-server/xkbdata.src/symbols/shift
@@ -17,3 +17,25 @@ xkb_symbols "breaks_caps" {
]
};
};
+
+// When pressed together with another Shift key, set/release Lock.
+partial modifier_keys
+xkb_symbols "lshift_both_capslock" {
+ key <LFSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_L, Caps_Lock ]
+ };
+};
+// When pressed together with another Shift key, set or unset Lock.
+partial modifier_keys
+xkb_symbols "rshift_both_capslock" {
+ key <RTSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_R, Caps_Lock ]
+ };
+};
+partial modifier_keys
+xkb_symbols "both_capslock" {
+ include "shift(lshift_both_capslock)"
+ include "shift(rshift_both_capslock)"
+};