KeyHandler // Simplify handleBackSpace().
This commit is contained in:
parent
105c58b90d
commit
361447faac
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue