SessionCtl // Turn off ASCII mode while switching CHS/CHT.

This commit is contained in:
ShikiSuen 2023-05-08 22:22:55 +08:00
parent 1edce13f67
commit e5143b9b4f
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ public extension SessionCtl {
///
@objc func switchInputMode(_: Any? = nil) {
guard let client: IMKTextInput = client() else { return }
defer { isASCIIMode = false }
let nowMode = IMEApp.currentInputMode
guard nowMode != .imeModeNULL else { return }
modeCheck: for neta in TISInputSource.allRegisteredInstancesOfThisInputMethod {