abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2022-01-09 20:26:06 +0100
committerJules Aguillon2022-01-09 20:26:06 +0100
commit53113cadd9654c827ae306905dae4d738dedf818 (patch)
treefe56afe810939608893fd82732e9f7f29105a563 /res
parent4b43645c4b6632d0cd2388b90e7bc2bbde98087e (diff)
downloadunexpected-keyboard-53113cadd9654c827ae306905dae4d738dedf818.tar.gz
unexpected-keyboard-53113cadd9654c827ae306905dae4d738dedf818.zip
Add the Action key
It is placed on the top-right of the enter key on every layouts. It sends a special event (performEditorAction) instead of writing a newline. The "actionId" is passed through the EditorInfo object in an obfuscated way so it's not clear whether it's using the right one.
Diffstat (limited to 'res')
-rw-r--r--res/xml/azerty.xml2
-rw-r--r--res/xml/numeric.xml2
-rw-r--r--res/xml/qwerty.xml2
3 files changed, 3 insertions, 3 deletions
diff --git a/res/xml/azerty.xml b/res/xml/azerty.xml
index a0fb1fd..b216441 100644
--- a/res/xml/azerty.xml
+++ b/res/xml/azerty.xml
@@ -39,6 +39,6 @@
<key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config"/>
<key width="4.0" key0="space"/>
<key width="1.2" key1="up" key2="right" key3="left" key4="down"/>
- <key width="1.8" key0="enter"/>
+ <key width="1.8" key0="enter" key2="action"/>
</row>
</keyboard>
diff --git a/res/xml/numeric.xml b/res/xml/numeric.xml
index 3e37501..1b5d93a 100644
--- a/res/xml/numeric.xml
+++ b/res/xml/numeric.xml
@@ -30,6 +30,6 @@
<key width="1.5" key0="0"/>
<key width="0.75" key0="." key2=","/>
<key width="0.75" key0="space" key1="&quot;" key2="'" key4="_"/>
- <key width="1.5" key0="enter" key2="±" key3="="/>
+ <key width="1.5" key0="enter" key1="±" key2="action" key3="="/>
</row>
</keyboard>
diff --git a/res/xml/qwerty.xml b/res/xml/qwerty.xml
index a015b0d..fa9fc2e 100644
--- a/res/xml/qwerty.xml
+++ b/res/xml/qwerty.xml
@@ -39,6 +39,6 @@
<key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config"/>
<key width="4.0" key0="space"/>
<key width="1.2" key1="up" key2="right" key3="left" key4="down"/>
- <key width="1.8" key0="enter"/>
+ <key width="1.8" key0="enter" key2="action"/>
</row>
</keyboard>