File tree 3 files changed +4
-4
lines changed
app/src/main/java/com/osfans/trime/ime
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Event(var s: String) {
27
27
private var states: List <String >? = null
28
28
var command: String = " "
29
29
var option: String = " "
30
- var select: String? = null
30
+ var select: String = " "
31
31
private var toggle: String = " "
32
32
var commit: String = " "
33
33
private set
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class KeyboardWindow(
265
265
return
266
266
}
267
267
if (event.code == KeyEvent .KEYCODE_EISU ) { // Switch keyboard
268
- switchKeyboard(event.select ? : " .default " )
268
+ switchKeyboard(event.select)
269
269
} else {
270
270
delegate.onEvent(event)
271
271
}
Original file line number Diff line number Diff line change @@ -225,10 +225,10 @@ class TextInputManager(
225
225
}
226
226
KeyEvent .KEYCODE_LANGUAGE_SWITCH -> { // Switch IME
227
227
when {
228
- event.select!! .contentEquals( " .next" ) -> {
228
+ event.select == " .next" -> {
229
229
trime.switchToNextIme()
230
230
}
231
- ! event.select.isNullOrEmpty () -> {
231
+ event.select.isNotEmpty () -> {
232
232
trime.switchToPrevIme()
233
233
}
234
234
else -> {
You can’t perform that action at this time.
0 commit comments