ctlIME // Update InputMode conditioning.

This commit is contained in:
ShikiSuen 2022-04-28 09:15:56 +08:00
parent 76a5fd78ba
commit 8220be404a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class ctlInputMethod: IMKInputController {
}
override func setValue(_ value: Any!, forTag _: Int, client: Any!) {
var newInputMode = InputMode(rawValue: value as? String ?? InputMode.imeModeNULL.rawValue)
var newInputMode: InputMode = InputMode(rawValue: value as? String ?? "") ?? InputMode.imeModeNULL
switch newInputMode {
case InputMode.imeModeCHS:
newInputMode = InputMode.imeModeCHS