SessionCtl // Disable special keyLayout for candidate Window.
This commit is contained in:
parent
70e0269bf3
commit
d0c704f9bf
|
@ -65,9 +65,9 @@ class SessionCtl: IMKInputController {
|
||||||
didSet {
|
didSet {
|
||||||
guard oldValue.type != state.type else { return }
|
guard oldValue.type != state.type else { return }
|
||||||
vCLog("Current State: \(state.type.rawValue)")
|
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 }
|
guard let client = client() else { return }
|
||||||
|
|
||||||
func doSetKeyLayout() {
|
func doSetKeyLayout() {
|
||||||
if (isASCIIMode && IMKHelper.isDynamicBasicKeyboardLayoutEnabled) || state.isCandidateContainer {
|
if isASCIIMode, IMKHelper.isDynamicBasicKeyboardLayoutEnabled {
|
||||||
client.overrideKeyboard(withKeyboardNamed: PrefMgr.shared.alphanumericalKeyboardLayout)
|
client.overrideKeyboard(withKeyboardNamed: PrefMgr.shared.alphanumericalKeyboardLayout)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue