SessionCtl // Optimize resetInputHandler().

This commit is contained in:
ShikiSuen 2022-11-13 18:37:02 +08:00
parent e3b16e9661
commit 45fc44eaf7
1 changed files with 1 additions and 2 deletions

View File

@ -170,11 +170,10 @@ extension SessionCtl {
// //
if state.type == .ofInputting, PrefMgr.shared.trimUnfinishedReadingsOnCommit || forceCleanup { if state.type == .ofInputting, PrefMgr.shared.trimUnfinishedReadingsOnCommit || forceCleanup {
inputHandler.clearComposerAndCalligrapher() inputHandler.clearComposerAndCalligrapher()
switchState(inputHandler.generateStateOfInputting())
} }
// IMKTextInput // IMKTextInput
// Shift+Delete // Shift+Delete
switchState(IMEState.ofEmpty()) switchState(IMEState.ofCommitting(textToCommit: inputHandler.generateStateOfInputting().displayedText))
// switchState(isSecureMode ? IMEState.ofAbortion() : IMEState.ofEmpty()) // switchState(isSecureMode ? IMEState.ofAbortion() : IMEState.ofEmpty())
} }
} }