From a05a92b9fbccb88e361ca3dfc8f26cf370fba73a Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 29 Aug 2022 17:56:31 +0800 Subject: [PATCH] ctlIME // Ensure committingBufferConverted. --- .../ControllerModules/ctlInputMethod_HandleStates.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift index 7829288c..255eb0f1 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift @@ -130,7 +130,7 @@ extension ctlInputMethod { ctlInputMethod.ctlCandidateCurrent.visible = false ctlInputMethod.tooltipController.hide() if let previous = previous as? InputState.NotEmpty { - commit(text: previous.composingBuffer) + commit(text: previous.committingBufferConverted) } clearInlineDisplay() // 最後一道保險 @@ -145,7 +145,7 @@ extension ctlInputMethod { if let previous = previous as? InputState.NotEmpty, !(state is InputState.EmptyIgnoringPreviousState) { - commit(text: previous.composingBuffer) + commit(text: previous.committingBufferConverted) } // 在這裡手動再取消一次選字窗與工具提示的顯示,可謂雙重保險。 ctlInputMethod.ctlCandidateCurrent.visible = false