InputHandler // Clear calligrapher if it is overflown.
This commit is contained in:
parent
c88c8bda64
commit
177100ba2c
|
@ -200,10 +200,12 @@ extension InputHandler {
|
||||||
delegate.switchState(newEmptyState)
|
delegate.switchState(newEmptyState)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
while isStrokesFull {
|
if isStrokesFull {
|
||||||
calligrapher = String(calligrapher.dropLast(1))
|
delegate.callError("2268DD51: calligrapher is full, clearing calligrapher.")
|
||||||
|
calligrapher.removeAll()
|
||||||
|
} else {
|
||||||
|
calligrapher.append(input.text)
|
||||||
}
|
}
|
||||||
calligrapher.append(input.text)
|
|
||||||
if isWildcardKeyInput {
|
if isWildcardKeyInput {
|
||||||
break prehandling
|
break prehandling
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue