ソースを参照

Adds [alt|ctrl]+enter shortcut key hooks

main
Eric Amodio 2年前
コミット
0bcb2ab85e
2個のファイルの変更13行の追加1行の削除
  1. +11
    -1
      package.json
  2. +2
    -0
      src/system/keyboard.ts

+ 11
- 1
package.json ファイルの表示

@ -12634,9 +12634,19 @@
"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",

+ 2
- 0
src/system/keyboard.ts ファイルの表示

@ -22,6 +22,8 @@ export const keys = [
'ctrl+right',
'alt+,',
'alt+.',
'alt+enter',
'ctrl+enter',
'escape',
] as const;
export type Keys = (typeof keys)[number];

||||||
x
 
000:0
読み込み中…
キャンセル
保存