summaryrefslogtreecommitdiff
path: root/symbols/level3
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-10-25 13:03:17 +1000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2021-11-12 12:17:37 +0000
commit29f2cd1eecc540480fcaf4580bcdd78283734e31 (patch)
treea56200f17e4a0ddb95c6a7ec129aeb20ca8079d7 /symbols/level3
parent4fc49ffecd4d79be9211aaf852167734bbf59f1d (diff)
downloadxkeyboard-config-29f2cd1eecc540480fcaf4580bcdd78283734e31.tar.gz
rules: add custom per-group mapping for level3(ralt_alt)
ralt_alt is a special mapping: "the right Alt key never chooses the third level." To achieve this, the key is defined for all four possible groups. This causes an issue with the libxkbcommon parser which extends the keymap to be 4 groups wide thanks to this key, see https://github.com/xkbcommon/libxkbcommon/issues/262 That is arguably a bug in libxkbcommon whose behavior differs from xkbcomp - xkbcomp clamps to the number of layouts. But defining the key this way is wrong, no other keys is defined for multiple groups on that purpose. The correct way to achieve this functionality is to define the symbols for group1 only and then adjust the rules so they automatically apply to all groups currently present.
Diffstat (limited to 'symbols/level3')
-rw-r--r--symbols/level38
1 files changed, 1 insertions, 7 deletions
diff --git a/symbols/level3 b/symbols/level3
index 0042743..0b3f9c5 100644
--- a/symbols/level3
+++ b/symbols/level3
@@ -30,13 +30,7 @@ partial modifier_keys
xkb_symbols "ralt_alt" {
key <RALT> {
type[Group1]="TWO_LEVEL",
- type[Group2]="TWO_LEVEL",
- type[Group3]="TWO_LEVEL",
- type[Group4]="TWO_LEVEL",
- symbols[Group1] = [ Alt_R, Meta_R ],
- symbols[Group2] = [ Alt_R, Meta_R ],
- symbols[Group3] = [ Alt_R, Meta_R ],
- symbols[Group4] = [ Alt_R, Meta_R ]
+ symbols[Group1] = [ Alt_R, Meta_R ]
};
modifier_map Mod1 { <RALT> };
};