Commit current word if we're switching modes
This commit is contained in:
@@ -158,6 +158,8 @@ class WordInputHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun inputMode(key: Key) {
|
private fun inputMode(key: Key) {
|
||||||
|
if (codeword.isNotEmpty()) wkt9.onCommit()
|
||||||
|
|
||||||
if (key == Key.B4) wkt9.onSwitchInputHandler(InputMode.Number)
|
if (key == Key.B4) wkt9.onSwitchInputHandler(InputMode.Number)
|
||||||
else wkt9.onSwitchInputHandler(InputMode.Letter)
|
else wkt9.onSwitchInputHandler(InputMode.Letter)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user