summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <hramrach@gmail.com>2017-08-11 22:04:26 +0200
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2017-09-04 17:16:00 +0100
commite4d92ed0a750e1b5979809d30f1d84547c02fc98 (patch)
treef646ba4fafd75ca7fb6f91c66d6971f0a5995982
parent2a9b3ad7f034c566c8b606486f983c56cd21623d (diff)
Add grp:menu_switch
-rw-r--r--rules/base.o_s.part1
-rw-r--r--rules/base.xml.in6
-rw-r--r--symbols/group10
3 files changed, 17 insertions, 0 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index 24aba72..505f094 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -16,6 +16,7 @@
grp:win_switch = +group(win_switch)
grp:lwin_switch = +group(lwin_switch)
grp:rwin_switch = +group(rwin_switch)
+ grp:menu_switch = +group(menu_switch)
grp:toggle = +group(toggle)
grp:shifts_toggle = +group(shifts_toggle)
grp:ctrls_toggle = +group(ctrls_toggle)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index dddb26f..18b309f 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -6067,6 +6067,12 @@
</option>
<option>
<configItem>
+ <name>grp:menu_switch</name>
+ <_description>Menu (while pressed), Shift+Menu for Menu</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
<name>grp:caps_switch</name>
<_description>Caps Lock (while pressed), Alt+Caps Lock for the original Caps Lock action</_description>
</configItem>
diff --git a/symbols/group b/symbols/group
index c798a40..12f35a4 100644
--- a/symbols/group
+++ b/symbols/group
@@ -45,6 +45,16 @@ xkb_symbols "rwin_switch" {
};
};
+// The right Menu key (while pressed) chooses the second keyboard group.
+// while Shift+Menu acts as Menu.
+partial modifier_keys
+xkb_symbols "menu_switch" {
+ key <MENU> {
+ symbols[Group1] = [ Mode_switch, Menu ],
+ virtualMods= AltGr
+ };
+};
+
// The right Ctrl key (while pressed) chooses the second keyboard group.
// (Needed mainly for the Canadian keyboard.)
partial modifier_keys