SessionCtl // Disable special keyLayout for candidate Window.

This commit is contained in:
ShikiSuen 2022-10-09 18:31:54 +08:00
parent 70e0269bf3
commit d0c704f9bf
1 changed files with 4 additions and 4 deletions

View File

@ -65,9 +65,9 @@ class SessionCtl: IMKInputController {
didSet {
guard oldValue.type != state.type else { return }
vCLog("Current State: \(state.type.rawValue)")
if state.isCandidateContainer || oldValue.isCandidateContainer {
setKeyLayout()
}
//
// guard state.isCandidateContainer != oldValue.isCandidateContainer else { return }
// if state.isCandidateContainer || oldValue.isCandidateContainer { setKeyLayout() }
}
}
@ -141,7 +141,7 @@ extension SessionCtl {
guard let client = client() else { return }
func doSetKeyLayout() {
if (isASCIIMode && IMKHelper.isDynamicBasicKeyboardLayoutEnabled) || state.isCandidateContainer {
if isASCIIMode, IMKHelper.isDynamicBasicKeyboardLayoutEnabled {
client.overrideKeyboard(withKeyboardNamed: PrefMgr.shared.alphanumericalKeyboardLayout)
return
}