SessionCtl // Fix incorrect "deactivated" states.

This commit is contained in:
ShikiSuen 2022-10-10 14:44:02 +08:00
parent c95a55dc60
commit d4ba4dbdcf
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ extension SessionCtl {
// MARK:
// deactivated empty()
if let client = client(), state.type == .ofDeactivated {
handle(state: IMEState.ofEmpty())
return handle(event, client: client)
}
//
state.isASCIIMode = isASCIIMode
state.isVerticalTyping = isVerticalTyping