From: Sergey V. Udaltsov Date: Sat, 6 Aug 2011 20:35:23 +0000 (+0100) Subject: Added option to use RAlt as RCtrl X-Git-Tag: xkeyboard-config-2.4~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0c4c16bf0fdb38494875dba117e38b363e99614;p=platform%2Fupstream%2Fxkeyboard-config.git Added option to use RAlt as RCtrl https://bugs.freedesktop.org/show_bug.cgi?id=38493 --- diff --git a/rules/base.o_s.part b/rules/base.o_s.part index 3e23396..8191a3f 100644 --- a/rules/base.o_s.part +++ b/rules/base.o_s.part @@ -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) diff --git a/rules/base.xml.in b/rules/base.xml.in index b56551a..9199636 100644 --- a/rules/base.xml.in +++ b/rules/base.xml.in @@ -5641,6 +5641,12 @@ <_description>Right Ctrl is mapped to Menu + diff --git a/symbols/ctrl b/symbols/ctrl index 96a1cbc..55a148f 100644 --- a/symbols/ctrl +++ b/symbols/ctrl @@ -47,3 +47,11 @@ xkb_symbols "ctrl_menu" { replace key { [ Control_R, Control_R ] }; modifier_map Control { Control_L, }; }; + +// right alt functions as another ctrl key +partial modifier_keys +xkb_symbols "ctrl_ralt" { + replace key { type[Group1] = "TWO_LEVEL", + symbols[Group1] = [ Control_R, Control_R ] }; + modifier_map Control { }; +};