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

This commit is contained in:
ShikiSuen 2022-08-06 16:08:27 +08:00
parent 5aa1729bd1
commit 02e312d3f4
1 changed files with 6 additions and 0 deletions

View File

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