summaryrefslogtreecommitdiff
path: root/symbols
diff options
context:
space:
mode:
authorStephan Hilb <stephan@ecshi.net>2011-02-19 14:06:28 +0100
committerSergey V. Udaltsov <svu@gnome.org>2011-02-27 15:01:02 +0000
commit43b56494bed2e67a2a26266850cb9e0b28a056c0 (patch)
tree28cf7e82eb3a5416ec0ff42e70d00ddeba1a18de /symbols
parentdce17bac18240f628cd27fae2de3161790247a0a (diff)
Add option to bind Control modifier to <CAPS> key while preserving the Caps_Lock keysym
Allows the <CAPS> key to act as a Control modifier while still being recognized as the caps lock key through its keysym (CapsLock). See #30898 for usecases and arguments.
Diffstat (limited to 'symbols')
-rw-r--r--symbols/capslock12
1 files changed, 12 insertions, 0 deletions
diff --git a/symbols/capslock b/symbols/capslock
index b6a45d47..3e088057 100644
--- a/symbols/capslock
+++ b/symbols/capslock
@@ -60,3 +60,15 @@ partial hidden modifier_keys
xkb_symbols "numlock" {
key <CAPS> { [ Num_Lock ] };
};
+
+// This changes the modifier behavior of the <CAPS> key.
+// The keysym will be reset to Caps_Lock
+partial hidden modifier_keys
+xkb_symbols "ctrl_modifier" {
+ replace key <CAPS> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1] = [ Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Control) ]
+ };
+ modifier_map Control { <CAPS> };
+};