SessionCtl // Optimize resetInputHandler().
This commit is contained in:
parent
e3b16e9661
commit
45fc44eaf7
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue