mirror of
https://github.com/qvacua/vimr.git
synced 2025-01-04 20:02:04 +03:00
commit
4fc189b6de
@ -56,6 +56,7 @@ class KeyUtils {
|
|||||||
NSF33FunctionKey: "F33",
|
NSF33FunctionKey: "F33",
|
||||||
NSF34FunctionKey: "F34",
|
NSF34FunctionKey: "F34",
|
||||||
NSF35FunctionKey: "F35",
|
NSF35FunctionKey: "F35",
|
||||||
|
0x19: "Tab",
|
||||||
]
|
]
|
||||||
|
|
||||||
static func isSpecial(key: String) -> Bool {
|
static func isSpecial(key: String) -> Bool {
|
||||||
|
@ -1036,6 +1036,7 @@ extension NeoVimView: NSTextInputClient {
|
|||||||
let control = modifierFlags.contains(.control)
|
let control = modifierFlags.contains(.control)
|
||||||
let option = modifierFlags.contains(.option)
|
let option = modifierFlags.contains(.option)
|
||||||
let command = modifierFlags.contains(.command)
|
let command = modifierFlags.contains(.command)
|
||||||
|
let shift = modifierFlags.contains(.shift)
|
||||||
|
|
||||||
if control {
|
if control {
|
||||||
result += "C-"
|
result += "C-"
|
||||||
@ -1049,6 +1050,10 @@ extension NeoVimView: NSTextInputClient {
|
|||||||
result += "D-"
|
result += "D-"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if shift {
|
||||||
|
result += "S-"
|
||||||
|
}
|
||||||
|
|
||||||
if result.characters.count > 0 {
|
if result.characters.count > 0 {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user