From 93a42fedeacc3475ec3f5e72f2f471801d440eae Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 6 Aug 2022 16:08:27 +0800 Subject: [PATCH] ctlIME // Confirm keyHandler.clear when handling certain states. --- .../ControllerModules/ctlInputMethod_HandleStates.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift index 8e92cb92..c4fd77ec 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift @@ -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) {