@@ -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
0 commit comments