SessionCtl // Optimize commission in resetInputHandler(). (#199)
This commit is contained in:
parent
5465fe16d2
commit
ae49ee81f3
|
@ -172,12 +172,10 @@ extension SessionCtl {
|
||||||
inputHandler.composer.clear()
|
inputHandler.composer.clear()
|
||||||
switchState(inputHandler.generateStateOfInputting())
|
switchState(inputHandler.generateStateOfInputting())
|
||||||
}
|
}
|
||||||
let isSecureMode = PrefMgr.shared.clientsIMKTextInputIncapable.contains(clientBundleIdentifier)
|
// 威注音不再在這裡對 IMKTextInput 客體黑名單當中的應用做資安措施。
|
||||||
if state.hasComposition, !isSecureMode {
|
// 有相關需求者,請在切換掉輸入法或者切換至新的客體應用之前敲一下 Shift+Delete。
|
||||||
/// 將傳回的新狀態交給調度函式。
|
switchState(IMEState.ofEmpty())
|
||||||
switchState(IMEState.ofCommitting(textToCommit: state.displayedText))
|
// switchState(isSecureMode ? IMEState.ofAbortion() : IMEState.ofEmpty())
|
||||||
}
|
|
||||||
switchState(isSecureMode ? IMEState.ofAbortion() : IMEState.ofEmpty())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue