summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <sergey.udaltsov@gmail.com>2019-10-30 23:22:22 +0000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2019-10-30 23:22:22 +0000
commit50c8c0ffd159d92f9039490410e88e33d3384041 (patch)
tree3731837b27fc0c2efce0b0a351b7bc2678444d85
parent91ea2d369b06ce5ed1a414cc940bd4a99523a198 (diff)
downloadxkeyboard-config-50c8c0ffd159d92f9039490410e88e33d3384041.tar.gz
added ledcompose
https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/114
-rw-r--r--compat/Makefile.am2
-rw-r--r--compat/ledcompose16
-rw-r--r--rules/base.o_c.part1
-rw-r--r--rules/base.xml13
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>