KeyHandler // Simplify handleBackSpace().

This commit is contained in:
ShikiSuen 2022-06-30 22:13:45 +08:00
parent 105c58b90d
commit 361447faac
1 changed files with 2 additions and 5 deletions

View File

@ -453,11 +453,8 @@ extension KeyHandler {
composer.doBackSpace()
}
if composer.isEmpty, compositorLength == 0 {
stateCallback(InputState.EmptyIgnoringPreviousState())
} else {
stateCallback(buildInputtingState)
}
stateCallback(
composer.isEmpty && compositor.isEmpty ? InputState.EmptyIgnoringPreviousState() : buildInputtingState)
return true
}