Skip to content

Commit

Permalink
Adds [alt|ctrl]+enter shortcut key hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Mar 1, 2023
1 parent 3940ef7 commit 0bcb2ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Expand Up @@ -12633,10 +12633,20 @@
"key": "alt+.",
"when": "gitlens:key:."
},
{
"command": "gitlens.key.alt+enter",
"key": "alt+enter",
"when": "gitlens:key:alt+enter"
},
{
"command": "gitlens.key.ctrl+enter",
"key": "ctrl+enter",
"when": "gitlens:key:ctrl+enter"
},
{
"command": "gitlens.key.escape",
"key": "escape",
"when": "gitlens:key:escape && editorTextFocus && !findWidgetVisible && !renameInputVisible && !suggestWidgetVisible && !isInEmbeddedEditor"
"when": "gitlens:key:escape && editorTextFocus && !findWidgetVisible && !quickFixWidgetVisible && !renameInputVisible && !suggestWidgetVisible && !isInEmbeddedEditor"
},
{
"command": "gitlens.gitCommands",
Expand Down
2 changes: 2 additions & 0 deletions src/system/keyboard.ts
Expand Up @@ -22,6 +22,8 @@ export const keys = [
'ctrl+right',
'alt+,',
'alt+.',
'alt+enter',
'ctrl+enter',
'escape',
] as const;
export type Keys = (typeof keys)[number];
Expand Down

0 comments on commit 0bcb2ab

Please sign in to comment.