summaryrefslogtreecommitdiff
path: root/symbols/pc
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@telfort.nl>2022-05-31 12:16:52 +0200
committerBenno Schulenberg <bensberg@telfort.nl>2022-06-06 15:07:25 +0200
commit52c9e4c8f76e6df49da17ac9481d3099bb89d8a5 (patch)
tree03e9d4a18d90be9387774c33eb7aa0673ce87fbf /symbols/pc
parented2e8eccae92961ff2b28deb63af476d349da21e (diff)
downloadxkeyboard-config-52c9e4c8f76e6df49da17ac9481d3099bb89d8a5.tar.gz
map 'ISO_Level5_Shift' by default to the Mod3 modifier through <MDSW>
Assign the ISO_Level5_Shift symbol to the <MDSW> key and map this key to the Mod3 modifier, so that, when the `action` part of an `interpret` rule for ISO_Level5_Shift wants to set a virtual modifier (LevelFive, normally), it will actually set Mod3. This new default arrangement makes the fifth-level choosers (the <RALT> and <LSGT> keys) work for the Neo layout (and its derivatives) also when this layout is not the first group. The <MDSW> key can be repurposed because "Mode switching" works fine without having the symbol 'Mode_switch' attached to some modifier: the `action` part of the relevant `interpret` rule simply increases the group number with 1, and that is enough, no need to also set Mod5. This fixes issue #322. Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Diffstat (limited to 'symbols/pc')
-rw-r--r--symbols/pc6
1 files changed, 4 insertions, 2 deletions
diff --git a/symbols/pc b/symbols/pc
index 26334f2..65c8ef6 100644
--- a/symbols/pc
+++ b/symbols/pc
@@ -35,8 +35,10 @@ xkb_symbols "pc105" {
// Six fake keys for virtual<->real modifiers mapping:
key <LVL3> {[ ISO_Level3_Shift ]};
- key <MDSW> {[ Mode_switch ]};
- modifier_map Mod5 { <LVL3>, <MDSW> };
+ modifier_map Mod5 { <LVL3> };
+
+ key <MDSW> {[ ISO_Level5_Shift ]};
+ modifier_map Mod3 { <MDSW> };
key <ALT> {[ NoSymbol, Alt_L ]};
modifier_map Mod1 { <ALT> };