KeyHandler // Simplifying handle().

This commit is contained in:
ShikiSuen 2022-07-01 08:42:13 +08:00
parent 3d9af406cb
commit b81a1cab91
1 changed files with 2 additions and 6 deletions

View File

@ -169,8 +169,7 @@ extension KeyHandler {
// 調 updateClientComposingBuffer() return true
// 調
let composeReading = composer.hasToneMarker()
if !composeReading {
if !composer.hasToneMarker() {
stateCallback(buildInputtingState)
return true
}
@ -317,10 +316,7 @@ extension KeyHandler {
if input.isCursorBackward || input.emacsKey == EmacsKey.backward {
return handleBackward(
state: state,
input: input,
stateCallback: stateCallback,
errorCallback: errorCallback
state: state, input: input, stateCallback: stateCallback, errorCallback: errorCallback
)
}