diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-05-11 09:40:04 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2022-05-13 11:10:18 +0200 |
commit | 0fb34101788d84e9a1d98b3730cc7b9295e0f19b (patch) | |
tree | 24a35e300a0dabceb2d663ca35f6522322584921 /symbols/group | |
parent | cb46bb0331ff3e07af700e6752fb76657b2c7d67 (diff) | |
download | xkeyboard-config-0fb34101788d84e9a1d98b3730cc7b9295e0f19b.tar.gz |
make the "Both Alts" option for switching between groups work again
Seemingly unintentionally bundled together with massive OLPC changes,
commit a8551efb70 from fifteen years ago changed the alts_toggle and
ctrls_toggle to use new key types that relied on virtual modifiers,
in order to address issue #122. But specifying a virtual modifier in
a key assignment does not work, apparenly due to some limitation of
XKM (https://gitlab.freedesktop.org/xorg/xserver/-/issues/297).
It does not look like that limitation will be fixed. So, let's roll
back the alts_toggle to what it was fifteen years ago when it worked.
This refreshed alts_toggle may cause problems for programs that cannot
cope with an Alt key that produces a different symbol upon key release
than upon key press -- the user will then have to choose a different
option for switching between layouts.
(The ctrls_toggle was restored in commit 4346c44713, six years ago.)
This fixes issue #316.
It also fixes issue #43, reported by Mohammed Adnène Trojette,
originally by Itaï Ben Yaacov in https://bugs.debian.org/463373.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Diffstat (limited to 'symbols/group')
-rw-r--r-- | symbols/group | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/symbols/group b/symbols/group index 536abc0..62cd301 100644 --- a/symbols/group +++ b/symbols/group @@ -349,13 +349,13 @@ partial modifier_keys xkb_symbols "alts_toggle" { virtual_modifiers LAlt, RAlt; key <LALT> { - type[Group1]="PC_RALT_LEVEL2", - symbols[Group1] = [ NoSymbol, ISO_Prev_Group ], + type[Group1]="PC_ALT_LEVEL2", + symbols[Group1] = [ Alt_L, ISO_Prev_Group ], virtualMods= LAlt }; key <RALT> { - type[Group1]="PC_LALT_LEVEL2", - symbols[Group1] = [ NoSymbol, ISO_Next_Group ], + type[Group1]="PC_ALT_LEVEL2", + symbols[Group1] = [ Alt_R, ISO_Next_Group ], virtualMods= RAlt }; }; |