Entering a number should clear codeword

This commit is contained in:
Nehemiah of Zebulun 2023-09-08 10:52:02 +02:00
parent e324057de2
commit 43df87f5ef

View File

@ -115,8 +115,15 @@ class WordInputMode: BaseInputMode() {
) )
} }
override fun commitNumber(key: Key, composing: Boolean): KeyEventResult {
codeWord.clear()
return super.commitNumber(key, composing)
}
private fun reset() { private fun reset() {
codeWord.clear() codeWord.clear()
newKey = true newKey = true
keyIndex = 0 keyIndex = 0
lastKey = null lastKey = null