ctlIME // Confirm keyHandler.clear when handling certain states.

This commit is contained in:
ShikiSuen 2022-08-06 16:08:27 +08:00
parent 4cf9f469c5
commit 93a42fedea
1 changed files with 6 additions and 0 deletions

View File

@ -131,6 +131,8 @@ extension ctlInputMethod {
commit(text: previous.composingBuffer)
}
clearInlineDisplay()
//
keyHandler.clear()
}
private func handle(state: InputState.Empty, previous: InputStateProtocol) {
@ -147,6 +149,8 @@ extension ctlInputMethod {
ctlInputMethod.ctlCandidateCurrent.visible = false
ctlInputMethod.tooltipController.hide()
clearInlineDisplay()
//
keyHandler.clear()
}
private func handle(
@ -167,6 +171,8 @@ extension ctlInputMethod {
commit(text: textToCommit)
}
clearInlineDisplay()
//
keyHandler.clear()
}
private func handle(state: InputState.Inputting, previous: InputStateProtocol) {