InputHandler // Clear calligrapher if it is overflown.

This commit is contained in:
ShikiSuen 2022-10-25 13:15:28 +08:00
parent c88c8bda64
commit 177100ba2c
1 changed files with 5 additions and 3 deletions

View File

@ -200,10 +200,12 @@ extension InputHandler {
delegate.switchState(newEmptyState)
return true
}
while isStrokesFull {
calligrapher = String(calligrapher.dropLast(1))
}
if isStrokesFull {
delegate.callError("2268DD51: calligrapher is full, clearing calligrapher.")
calligrapher.removeAll()
} else {
calligrapher.append(input.text)
}
if isWildcardKeyInput {
break prehandling
}