diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2023-03-26 17:31:16 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2023-03-26 18:01:58 +0200 |
commit | 28169a24e40f09e00cacc58ac18a2bba06f77231 (patch) | |
tree | 64217d244bad4030e110090487218f6d1bbddd64 /symbols/ctrl | |
parent | 67a3e8a9f84a257c6b94e6c9daa40296b8e0f2dd (diff) |
force the CAPS key to have one level (for options that affect that key)
In olden times, there were no layouts that redefined the CAPS key,
so having options that overwrote the single symbol that it contained
worked fine. However, some modern layouts, like Colemak and Workman,
define the CAPS key to have multiple levels, which causes some of the
XKB options to fail to overwrite the upper levels of that key.
Indirectly-reported-by: VinÃcius dos Santos Oliveira
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Diffstat (limited to 'symbols/ctrl')
-rw-r--r-- | symbols/ctrl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/symbols/ctrl b/symbols/ctrl index af7c523c..bf600e5b 100644 --- a/symbols/ctrl +++ b/symbols/ctrl @@ -14,7 +14,7 @@ xkb_symbols "lctrl_meta" { // Swap the functions of the CapsLock key and the left Ctrl key. partial modifier_keys xkb_symbols "swapcaps" { - replace key <CAPS> { [ Control_L ] }; + replace key <CAPS> { [ Control_L ], type[group1] = "ONE_LEVEL" }; replace key <LCTL> { [ Caps_Lock ] }; modifier_map Control { <CAPS> }; modifier_map Lock { <LCTL> }; @@ -24,7 +24,7 @@ xkb_symbols "swapcaps" { // and the CapsLock key a left Control. partial modifier_keys xkb_symbols "hyper_capscontrol" { - replace key <CAPS> { [ Control_L ] }; + replace key <CAPS> { [ Control_L ], type[group1] = "ONE_LEVEL" }; replace key <LCTL> { [ Hyper_L ] }; modifier_map Control { <CAPS> }; modifier_map Mod4 { <LCTL> }; @@ -35,7 +35,7 @@ xkb_symbols "hyper_capscontrol" { // file has defined appropriate aliases for the keys in question. partial modifier_keys xkb_symbols "ac_ctrl" { - replace key <AC00> { [ Control_L ] }; + replace key <AC00> { [ Control_L ], type[group1] = "ONE_LEVEL" }; replace key <AA00> { [ Caps_Lock ] }; modifier_map Control { <AC00> }; modifier_map Lock { <AA00> }; |