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