ctlIME // Enable Apple ABC keyboard layout for alphanumerical mode.
This commit is contained in:
parent
1b060bb328
commit
49038b9cb3
|
@ -182,6 +182,12 @@ class ctlInputMethod: IMKInputController {
|
|||
}
|
||||
|
||||
override func handle(_ event: NSEvent!, client: Any!) -> Bool {
|
||||
|
||||
if (Preferences.isAlphanumericalModeEnabled) {
|
||||
(client as? IMKTextInput)?.overrideKeyboard(withKeyboardNamed: Preferences.functionKeyboardLayout)
|
||||
return false
|
||||
}
|
||||
|
||||
if event.type == .flagsChanged {
|
||||
let functionKeyKeyboardLayoutID = Preferences.functionKeyboardLayout
|
||||
let basisKeyboardLayoutID = Preferences.basisKeyboardLayout
|
||||
|
|
Loading…
Reference in New Issue