hotkey fixes (#1013)

This commit is contained in:
Eugene Pankov
2019-06-13 00:34:52 +02:00
parent f7f7bccbe3
commit a2b633d3a5
5 changed files with 44 additions and 30 deletions

View File

@@ -11,10 +11,10 @@ hotkeys:
rename-tab:
- 'Ctrl-Shift-R'
next-tab:
- 'Ctrl-Shift-ArrowRight'
- 'Ctrl-Shift-Right'
- 'Ctrl-Tab'
previous-tab:
- 'Ctrl-Shift-ArrowLeft'
- 'Ctrl-Shift-Left'
- 'Ctrl-Shift-Tab'
tab-1:
- 'Alt-1'
@@ -43,12 +43,12 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- 'Ctrl-Alt-ArrowRight'
- 'Ctrl-Alt-Right'
pane-nav-down:
- 'Ctrl-Alt-ArrowDown'
- 'Ctrl-Alt-Down'
pane-nav-up:
- 'Ctrl-Alt-ArrowUp'
- 'Ctrl-Alt-Up'
pane-nav-left:
- 'Ctrl-Alt-ArrowLeft'
- 'Ctrl-Alt-Left'
close-pane: []
pluginBlacklist: ['ssh']

View File

@@ -41,13 +41,13 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- '⌘-⌥-ArrowRight'
- '⌘-⌥-Right'
pane-nav-down:
- '⌘-⌥-ArrowDown'
- '⌘-⌥-Down'
pane-nav-up:
- '⌘-⌥-ArrowUp'
- '⌘-⌥-Up'
pane-nav-left:
- '⌘-⌥-ArrowLeft'
- '⌘-⌥-Left'
close-pane:
- '⌘-Shift-W'
pluginBlacklist: ['ssh']

View File

@@ -11,10 +11,10 @@ hotkeys:
rename-tab:
- 'Ctrl-Shift-R'
next-tab:
- 'Ctrl-Shift-ArrowRight'
- 'Ctrl-Shift-Right'
- 'Ctrl-Tab'
previous-tab:
- 'Ctrl-Shift-ArrowLeft'
- 'Ctrl-Shift-Left'
- 'Ctrl-Shift-Tab'
tab-1:
- 'Alt-1'
@@ -43,12 +43,12 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- 'Ctrl-Alt-ArrowRight'
- 'Ctrl-Alt-Right'
pane-nav-down:
- 'Ctrl-Alt-ArrowDown'
- 'Ctrl-Alt-Down'
pane-nav-up:
- 'Ctrl-Alt-ArrowUp'
- 'Ctrl-Alt-Up'
pane-nav-left:
- 'Ctrl-Alt-ArrowLeft'
- 'Ctrl-Alt-Left'
close-pane: []
pluginBlacklist: []

View File

@@ -50,6 +50,20 @@ export function stringifyKeySequence (events: NativeKeyEvent[]): string[] {
key = key.replace('Key', '')
key = key.replace('Arrow', '')
key = key.replace('Digit', '')
key = {
Comma: ',',
Period: '.',
Slash: '/',
Backslash: '\\',
IntlBackslash: '\\',
Backquote: '`',
Minus: '-',
Equal: '=',
Semicolon: ';',
Quote: '\'',
BracketLeft: '[',
BracketRight: ']',
}[key] || key
itemKeys.push(key)
items.push(itemKeys.join('-'))
}