ctlIME // +setKeyLayout().
This commit is contained in:
parent
6576311606
commit
770cc858d6
|
@ -61,6 +61,13 @@ class ctlInputMethod: IMKInputController {
|
||||||
static var currentKeyHandler: KeyHandler = KeyHandler()
|
static var currentKeyHandler: KeyHandler = KeyHandler()
|
||||||
@objc static var currentInputMode = ""
|
@objc static var currentInputMode = ""
|
||||||
|
|
||||||
|
// MARK: - Keyboard Layout Specifier
|
||||||
|
|
||||||
|
@objc func setKeyLayout(isfunctionKeyboardLayout: Bool = false) {
|
||||||
|
let client = client().self as IMKTextInput
|
||||||
|
client.overrideKeyboard(withKeyboardNamed: isfunctionKeyboardLayout ? mgrPrefs.functionKeyboardLayout : mgrPrefs.basisKeyboardLayout)
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - IMKInputController methods
|
// MARK: - IMKInputController methods
|
||||||
|
|
||||||
override init!(server: IMKServer!, delegate: Any!, client inputClient: Any!) {
|
override init!(server: IMKServer!, delegate: Any!, client inputClient: Any!) {
|
||||||
|
|
Loading…
Reference in New Issue