Added ctrl:ctrl_menu
authorSergey V. Udaltsov <svu@gnome.org>
Fri, 18 Jun 2010 20:48:20 +0000 (21:48 +0100)
committerSergey V. Udaltsov <svu@gnome.org>
Fri, 18 Jun 2010 20:48:20 +0000 (21:48 +0100)
https://bugs.freedesktop.org/attachment.cgi?id=36095

rules/base.o_s.part
rules/base.xml.in
symbols/ctrl

index 9958f10..59c39b5 100644 (file)
@@ -64,6 +64,7 @@
   ctrl:ctrl_ac         =       +ctrl(ctrl_ac)
   ctrl:ctrl_aa         =       +ctrl(ctrl_aa)
   ctrl:ctrl_ra         =       +ctrl(ctrl_ra)
+  ctrl:ctrl_menu       =       +ctrl(ctrl_menu)
   compose:ralt         =       +compose(ralt)
   compose:lwin         =       +compose(lwin)
   compose:rwin         =       +compose(rwin)
index 969906b..8fc8c4e 100644 (file)
         </configItem>
       </option>
     </group>
-    <group allowMultipleSelection="false">
+    <group allowMultipleSelection="true">
       <!-- Tweaking the position of the "Ctrl" key -->
       <configItem>
         <name>ctrl</name>
           <_description>Right Ctrl as Right Alt</_description>
         </configItem>
       </option>
+      <option>
+        <configItem>
+          <name>ctrl:ctrl_menu</name>
+          <description>Right Ctrl is mapped to Menu</description>
+        </configItem>
+      </option>
     </group>
     <group allowMultipleSelection="true">
       <!-- Using startard LEDs to indicate the alternative (not first) group(s) -->
index e9c4eff..8ddf093 100644 (file)
@@ -39,3 +39,10 @@ partial modifier_keys
 xkb_symbols "ctrl_ra" {
     key <RCTL> {  symbols[Group1]= [ Alt_R ] };
 };
+
+// Menu works as Right Ctrl
+partial modifier_keys
+xkb_symbols "ctrl_menu" {
+  replace key <MENU> { [ Control_R, Control_R ] };
+  modifier_map Control { Control_L, <MENU> };
+};