KeyHandler // Simplify handleBackSpace().
This commit is contained in:
parent
105c58b90d
commit
361447faac
|
@ -453,11 +453,8 @@ extension KeyHandler {
|
||||||
composer.doBackSpace()
|
composer.doBackSpace()
|
||||||
}
|
}
|
||||||
|
|
||||||
if composer.isEmpty, compositorLength == 0 {
|
stateCallback(
|
||||||
stateCallback(InputState.EmptyIgnoringPreviousState())
|
composer.isEmpty && compositor.isEmpty ? InputState.EmptyIgnoringPreviousState() : buildInputtingState)
|
||||||
} else {
|
|
||||||
stateCallback(buildInputtingState)
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue