From 45fc44eaf7ffbf1db6390226d98181ebdfe75c16 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 13 Nov 2022 18:37:02 +0800 Subject: [PATCH] SessionCtl // Optimize resetInputHandler(). --- Source/Modules/SessionCtl_Core.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Modules/SessionCtl_Core.swift b/Source/Modules/SessionCtl_Core.swift index 70d8b2d2..b54d7346 100644 --- a/Source/Modules/SessionCtl_Core.swift +++ b/Source/Modules/SessionCtl_Core.swift @@ -170,11 +170,10 @@ extension SessionCtl { // 過濾掉尚未完成拼寫的注音。 if state.type == .ofInputting, PrefMgr.shared.trimUnfinishedReadingsOnCommit || forceCleanup { inputHandler.clearComposerAndCalligrapher() - switchState(inputHandler.generateStateOfInputting()) } // 威注音不再在這裡對 IMKTextInput 客體黑名單當中的應用做資安措施。 // 有相關需求者,請在切換掉輸入法或者切換至新的客體應用之前敲一下 Shift+Delete。 - switchState(IMEState.ofEmpty()) + switchState(IMEState.ofCommitting(textToCommit: inputHandler.generateStateOfInputting().displayedText)) // switchState(isSecureMode ? IMEState.ofAbortion() : IMEState.ofEmpty()) } }