Added option to use RAlt as RCtrl
authorSergey V. Udaltsov <svu@gnome.org>
Sat, 6 Aug 2011 20:35:23 +0000 (21:35 +0100)
committerSergey V. Udaltsov <svu@gnome.org>
Sat, 6 Aug 2011 20:35:23 +0000 (21:35 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=38493

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

index 3e23396..8191a3f 100644 (file)
@@ -68,6 +68,7 @@
   ctrl:ctrl_aa         =       +ctrl(ctrl_aa)
   ctrl:ctrl_ra         =       +ctrl(ctrl_ra)
   ctrl:ctrl_menu       =       +ctrl(ctrl_menu)
+  ctrl:ctrl_ralt       =       +ctrl(ctrl_ralt)
   compose:ralt         =       +compose(ralt)
   compose:lwin         =       +compose(lwin)
   compose:rwin         =       +compose(rwin)
index b56551a..9199636 100644 (file)
           <_description>Right Ctrl is mapped to Menu</_description>
         </configItem>
       </option>
+      <option>
+        <configItem>
+          <name>ctrl:ctrl_ralt</name>
+          <_description>Right Alt functions as Ctrl</_description>
+        </configItem>
+      </option>
     </group>
     <group allowMultipleSelection="true">
       <!-- Using startard LEDs to indicate the alternative (not first) group(s) -->
index 96a1cbc..55a148f 100644 (file)
@@ -47,3 +47,11 @@ xkb_symbols "ctrl_menu" {
   replace key <MENU> { [ Control_R, Control_R ] };
   modifier_map Control { Control_L, <MENU> };
 };
+
+// right alt functions as another ctrl key
+partial modifier_keys 
+xkb_symbols "ctrl_ralt" {
+    replace key <RALT> { type[Group1]    = "TWO_LEVEL",
+                         symbols[Group1] = [ Control_R, Control_R ] };
+    modifier_map Control { <RALT> }; 
+};