SessionCtl // Force composer cleanup on deactivateServer().

This commit is contained in:
ShikiSuen 2023-02-08 23:49:47 +08:00
parent 856c5d02d7
commit f103335d5c
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ public extension SessionCtl {
_ = sender //
DispatchQueue.main.async { [self] in
isActivated = false
resetInputHandler() // Empty
resetInputHandler(forceComposerCleanup: true) // Empty
switchState(IMEState.ofDeactivated())
inputHandler = nil
// IMK nil IMK
@ -338,7 +338,7 @@ public extension SessionCtl {
/// IMK Bug
override func inputControllerWillClose() {
//
resetInputHandler()
resetInputHandler(forceComposerCleanup: true)
super.inputControllerWillClose()
}
}