We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd141d commit f2d7792Copy full SHA for f2d7792
2 files changed
app/src/main/java/com/osfans/trime/ime/core/Trime.java
@@ -1246,7 +1246,7 @@ private boolean performEnter(int keyCode) { // 回車
1246
}
1247
1248
/** 模擬PC鍵盤中Esc鍵的功能:清除輸入的編碼和候選項 */
1249
- private void performEscape() {
+ public void performEscape() {
1250
if (isComposing()) textInputManager.onKey(KeyEvent.KEYCODE_ESCAPE, 0);
1251
1252
app/src/main/java/com/osfans/trime/ime/text/TextInputManager.kt
@@ -189,6 +189,9 @@ class TextInputManager private constructor() :
189
) {
190
super.onStartInputView(instance, restarting)
191
Trime.getService().selectLiquidKeyboard(-1)
192
+ if (restarting) {
193
+ trime.performEscape()
194
+ }
195
isComposable = false
196
var tempAsciiMode = if (shouldResetAsciiMode) false else null
197
val keyboardType =
0 commit comments