SessionCtl // Ensure a state switch when resetInputHandler().

This commit is contained in:
ShikiSuen 2023-02-09 23:47:45 +08:00
parent 8b0283cf51
commit 17da7f83cf
1 changed files with 4 additions and 4 deletions

View File

@ -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))
}
}