diff options
| author | Jules Aguillon | 2022-09-24 15:57:45 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-09-24 16:02:54 +0200 |
| commit | 2fc40512c669e89cccc3b21cad74c3bdf3b679a3 (patch) | |
| tree | c19cfccd7488566a152f3cc948877c2de4d16219 | |
| parent | 5811643562dc36be31ab4abd3411af03e0de3208 (diff) | |
| download | unexpected-keyboard-2fc40512c669e89cccc3b21cad74c3bdf3b679a3.tar.gz unexpected-keyboard-2fc40512c669e89cccc3b21cad74c3bdf3b679a3.zip | |
Add switch_greekmath to the extra keys
The Fn+switch_numeric shortcut might be hard to discover or too slow for
heavy users.
A location is allocated for the key so it has a consistent placement.
| -rw-r--r-- | res/xml/bottom_row.xml | 2 | ||||
| -rw-r--r-- | res/xml/settings.xml | 1 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/res/xml/bottom_row.xml b/res/xml/bottom_row.xml index f64c0a5..14e28a2 100644 --- a/res/xml/bottom_row.xml +++ b/res/xml/bottom_row.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <row height="0.95"> - <key width="1.8" key0="ctrl" key2="meta" key4="switch_numeric"/> + <key width="1.8" key0="ctrl" key1="loc switch_greekmath" key2="meta" key4="switch_numeric"/> <key width="1.2" key0="fn" key1="alt" key2="change_method" key3="switch_emoji" key4="config"/> <key width="4.0" key0="space" key1="switch_programming" edgekeys="true"/> <key width="1.2" key1="up" key2="right" key3="left" key4="down" edgekeys="true"/> diff --git a/res/xml/settings.xml b/res/xml/settings.xml index afe1546..f74dc90 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -20,6 +20,7 @@ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="12"/> <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="13"/> <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="14"/> + <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="15"/> </PreferenceScreen> </PreferenceCategory> <PreferenceCategory android:title="@string/pref_category_typing"> diff --git a/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java b/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java index 887476a..79e9051 100644 --- a/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java +++ b/srcs/juloo.keyboard2/ExtraKeyCheckBoxPreference.java @@ -28,7 +28,8 @@ public class ExtraKeyCheckBoxPreference extends CheckBoxPreference "accent_ogonek", "€", "ß", - "£" + "£", + "switch_greekmath", }; boolean _key_font; |
