Skip to content

Commit 3ff662e

Browse files
committed
v0.82.3 More languages templates and Google Messages shortcut
Added `emoji + S` shortcut for Google Messages. Added languages to the Template list: #### Hungarian-German | Key | Multipress | |---|---| | `a` | `á`, `ä` | | `e` | `é` | | `i` | `í` | | `o` | `ó`, `ö`, `ő` | | `u` | `ú`, `ü`, `ű` | | `s` | `ß` | #### Polish | Key | Multipress | |---|---| | `a` | `ą` | | `e` | `ę` | | `l` | `ł` | | `o` | `ó` | | `c` | `ć` | | `n` | `ń` | | `s` | `ś` | | `z` | `ż` | | `x` | `ź` | #### Romanian | Key | Multipress | |---|---| | `a` | `ă`, `â` | | `i` | `î` | | `s` | `ș` | | `t` | `ț` |
1 parent 608a9b8 commit 3ff662e

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212
minSdk = 29
1313
targetSdk = 33
1414
versionCode = 1
15-
versionName = "0.82"
15+
versionName = "0.82.3"
1616
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1717
}
1818

app/src/main/java/io/github/rickybrent/minimal_symlayer_keyboard/InputMethodService.kt

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,27 @@ val templates = hashMapOf(
128128
KeyEvent.KEYCODE_C to arrayOf('ç', MPSUBST_BYPASS),
129129
KeyEvent.KEYCODE_SPACE to arrayOf(MPSUBST_STR_DOTSPACE)
130130
),
131-
"hu" to hashMapOf(
132-
KeyEvent.KEYCODE_A to arrayOf('´', MPSUBST_BYPASS),
131+
"hu-de" to hashMapOf(
132+
KeyEvent.KEYCODE_A to arrayOf('´', '¨', MPSUBST_BYPASS),
133133
KeyEvent.KEYCODE_E to arrayOf('´', MPSUBST_BYPASS),
134134
KeyEvent.KEYCODE_I to arrayOf('´', MPSUBST_BYPASS),
135135
KeyEvent.KEYCODE_O to arrayOf('´', '¨', 'ő', MPSUBST_BYPASS),
136136
KeyEvent.KEYCODE_U to arrayOf('´', '¨', 'ű', MPSUBST_BYPASS),
137137
KeyEvent.KEYCODE_S to arrayOf('ß', MPSUBST_BYPASS),
138138
KeyEvent.KEYCODE_SPACE to arrayOf(MPSUBST_STR_DOTSPACE)
139139
),
140+
"pl" to hashMapOf(
141+
KeyEvent.KEYCODE_A to arrayOf('ą', MPSUBST_BYPASS),
142+
KeyEvent.KEYCODE_E to arrayOf('ę', MPSUBST_BYPASS),
143+
KeyEvent.KEYCODE_L to arrayOf('ł', MPSUBST_BYPASS),
144+
KeyEvent.KEYCODE_O to arrayOf('´', MPSUBST_BYPASS),
145+
KeyEvent.KEYCODE_C to arrayOf('´', MPSUBST_BYPASS),
146+
KeyEvent.KEYCODE_N to arrayOf('´', MPSUBST_BYPASS),
147+
KeyEvent.KEYCODE_S to arrayOf('´', MPSUBST_BYPASS),
148+
KeyEvent.KEYCODE_Z to arrayOf('ż', MPSUBST_BYPASS),
149+
KeyEvent.KEYCODE_X to arrayOf('ź', MPSUBST_BYPASS),
150+
KeyEvent.KEYCODE_SPACE to arrayOf(MPSUBST_STR_DOTSPACE)
151+
),
140152
"dk-no" to hashMapOf(
141153
KeyEvent.KEYCODE_A to arrayOf('å', 'æ', MPSUBST_BYPASS),
142154
KeyEvent.KEYCODE_O to arrayOf('ø', 'ö', MPSUBST_BYPASS),
@@ -150,6 +162,13 @@ val templates = hashMapOf(
150162
KeyEvent.KEYCODE_S to arrayOf('ß', MPSUBST_BYPASS),
151163
KeyEvent.KEYCODE_SPACE to arrayOf(MPSUBST_STR_DOTSPACE)
152164
),
165+
"rom" to hashMapOf(
166+
KeyEvent.KEYCODE_A to arrayOf('ă', 'â', MPSUBST_BYPASS),
167+
KeyEvent.KEYCODE_I to arrayOf('î', MPSUBST_BYPASS),
168+
KeyEvent.KEYCODE_S to arrayOf('ș', MPSUBST_BYPASS),
169+
KeyEvent.KEYCODE_T to arrayOf('ț', MPSUBST_BYPASS),
170+
KeyEvent.KEYCODE_SPACE to arrayOf(MPSUBST_STR_DOTSPACE)
171+
),
153172
"order1" to hashMapOf( // áàâäã
154173
KeyEvent.KEYCODE_A to arrayOf('´', '`', '^', '¨', '~', MPSUBST_BYPASS),
155174
KeyEvent.KEYCODE_E to arrayOf('´', '`', '^', '¨', '~', MPSUBST_BYPASS),
@@ -722,6 +741,10 @@ class InputMethodService : AndroidInputMethodService() {
722741
launchApp(Intent.ACTION_ASSIST)
723742
true
724743
}
744+
KeyEvent.KEYCODE_S -> { // Messaging
745+
launchApp(Intent.ACTION_MAIN, Intent.CATEGORY_APP_MESSAGING )
746+
true
747+
}
725748
KeyEvent.KEYCODE_C -> { // Contacts
726749
launchApp(Intent.ACTION_MAIN, Intent.CATEGORY_APP_CONTACTS)
727750
true

app/src/main/res/values/arrays.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
<item>Spanish</item>
55
<item>German</item>
66
<item>Portuguese</item>
7-
<item>Hungarian</item>
7+
<item>Hungarian-German</item>
8+
<item>Polish</item>
89
<item>French+ES/DE/PT</item>
910
<item>Danish-Norwegian</item>
1011
<item>Swedish-Finnish</item>
12+
<item>Romanian</item>
1113
<item>áàâäã</item>
1214
<item>àáâäã</item>
1315
</string-array>
@@ -16,10 +18,12 @@
1618
<item>es</item>
1719
<item>de</item>
1820
<item>pt</item>
19-
<item>hu</item>
21+
<item>hu-de</item>
22+
<item>pl</item>
2023
<item>fr-ext</item>
2124
<item>dk-no</item>
2225
<item>se-fi</item>
26+
<item>rom</item>
2327
<item>order1</item>
2428
<item>order2</item>
2529
</string-array>

0 commit comments

Comments
 (0)