diff options
-rw-r--r-- | compat/Makefile.am | 2 | ||||
-rw-r--r-- | compat/ledcompose | 16 | ||||
-rw-r--r-- | rules/base.o_c.part | 1 | ||||
-rw-r--r-- | rules/base.xml | 13 |
4 files changed, 31 insertions, 1 deletions
diff --git a/compat/Makefile.am b/compat/Makefile.am index e2026af..1dd851a 100644 --- a/compat/Makefile.am +++ b/compat/Makefile.am @@ -3,7 +3,7 @@ compatdir = $(xkb_base)/compat compat_DATA = \ accessx basic caps complete \ iso9995 \ -japan ledcaps \ +japan ledcaps ledcompose \ lednum ledscroll level5 \ misc mousekeys \ olpc pc pc98 xfree86 \ diff --git a/compat/ledcompose b/compat/ledcompose new file mode 100644 index 0000000..6213501 --- /dev/null +++ b/compat/ledcompose @@ -0,0 +1,16 @@ + +default partial xkb_compatibility "compose" { + + virtual_modifiers Compose; + + interpret Multi_key+Any { + virtualModifier= Compose; + action = LatchMods(modifiers=modMapMods); + }; + + indicator "Compose" { + allowExplicit; + whichModState= Latched; + modifiers= Compose; + }; +}; diff --git a/rules/base.o_c.part b/rules/base.o_c.part index b80ab6d..504aa40 100644 --- a/rules/base.o_c.part +++ b/rules/base.o_c.part @@ -1,6 +1,7 @@ grp_led:num = +lednum(group_lock) grp_led:caps = +ledcaps(group_lock) grp_led:scroll = +ledscroll(group_lock) + mod_led:compose = +ledcompose(compose) japan:kana_lock = +japan(kana_lock) caps:shiftlock = +ledcaps(shift_lock) grab:break_actions = +xfree86(grab_break) diff --git a/rules/base.xml b/rules/base.xml index 39f4cb1..b3627d2 100644 --- a/rules/base.xml +++ b/rules/base.xml @@ -6744,6 +6744,19 @@ </configItem> </option> </group> + <group allowMultipleSelection="true"> + <!-- Using LEDs to indicate modifiers --> + <configItem> + <name>mod_led</name> + <description>Use keyboard LED to indicate modifiers</description> + </configItem> + <option> + <configItem> + <name>mod_led:compose</name> + <description>Compose</description> + </configItem> + </option> + </group> <group allowMultipleSelection="false"> <!-- Select a keypad type --> <configItem> |