1
1
mirror of https://github.com/qvacua/vimr.git synced 2025-01-02 10:43:41 +03:00

Merge pull request #454 from mkhl/develop

Support Shift-Tab
This commit is contained in:
Tae Won Ha 2017-05-17 19:23:34 +02:00 committed by GitHub
commit 4fc189b6de
2 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class KeyUtils {
NSF33FunctionKey: "F33",
NSF34FunctionKey: "F34",
NSF35FunctionKey: "F35",
0x19: "Tab",
]
static func isSpecial(key: String) -> Bool {

View File

@ -1036,6 +1036,7 @@ extension NeoVimView: NSTextInputClient {
let control = modifierFlags.contains(.control)
let option = modifierFlags.contains(.option)
let command = modifierFlags.contains(.command)
let shift = modifierFlags.contains(.shift)
if control {
result += "C-"
@ -1049,6 +1050,10 @@ extension NeoVimView: NSTextInputClient {
result += "D-"
}
if shift {
result += "S-"
}
if result.characters.count > 0 {
return result
}