From 938fedbcc47f94978b1487f55682e8a979ac632f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 24 Jul 2022 09:32:29 +0800 Subject: [PATCH] ctlIME // Hide candidates and tooltip on State.Empty(). --- .../ControllerModules/ctlInputMethod_HandleStates.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift index b772cbe5..0c5f78a4 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift @@ -151,6 +151,9 @@ extension ctlInputMethod { { commit(text: previous.composingBuffer) } + // 在這裡手動再取消一次選字窗與工具提示的顯示,可謂雙重保險。 + ctlInputMethod.ctlCandidateCurrent.visible = false + ctlInputMethod.tooltipController.hide() clearInlineDisplay() }