SessionCtl // Ensure a state switch when resetInputHandler().
This commit is contained in:
parent
8b0283cf51
commit
17da7f83cf
|
@ -200,12 +200,12 @@ public extension SessionCtl {
|
|||
// 過濾掉尚未完成拼寫的注音。
|
||||
let sansReading: Bool =
|
||||
(state.type == .ofInputting) && (PrefMgr.shared.trimUnfinishedReadingsOnCommit || forceCleanup)
|
||||
textToCommit = inputHandler.generateStateOfInputting(sansReading: sansReading).displayedText
|
||||
if state.hasComposition {
|
||||
textToCommit = inputHandler.generateStateOfInputting(sansReading: sansReading).displayedText
|
||||
}
|
||||
// 威注音不再在這裡對 IMKTextInput 客體黑名單當中的應用做資安措施。
|
||||
// 有相關需求者,請在切換掉輸入法或者切換至新的客體應用之前敲一下 Shift+Delete。
|
||||
if !inputHandler.isCompositorEmpty {
|
||||
switchState(IMEState.ofCommitting(textToCommit: textToCommit))
|
||||
}
|
||||
switchState(IMEState.ofCommitting(textToCommit: textToCommit))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue