ctlIME // Confirm keyHandler.clear when handling certain states.
This commit is contained in:
parent
5aa1729bd1
commit
02e312d3f4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue