From 120f5ae6fc3c79916cc944a7c1b7b9aa9d187efb Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 17 Feb 2017 22:21:07 -0500 Subject: [PATCH] Fixes disable issue with shortcut keys --- package.json | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 6e99f44..94d799b 100644 --- a/package.json +++ b/package.json @@ -557,53 +557,55 @@ "command": "gitlens.toggleBlame", "key": "alt+b", "mac": "alt+b", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.toggleCodeLens", "key": "alt+shift+b", "mac": "alt+shift+b", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.showQuickFileHistory", "key": "alt+h", "mac": "alt+h", - "when": "editorTextFocus" + "when": "gitlens:enabled" }, { "command": "gitlens.showQuickRepoHistory", "key": "shift+alt+h", - "mac": "shift+alt+h" + "mac": "shift+alt+h", + "when": "gitlens:enabled" }, { "command": "gitlens.showQuickCommitDetails", "key": "alt+c", - "mac": "alt+c" + "mac": "alt+c", + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.diffLineWithPrevious", "key": "alt+p", "mac": "alt+p", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.diffWithPrevious", "key": "shift+alt+p", "mac": "shift+alt+p", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.diffLineWithWorking", "key": "alt+w", "mac": "alt+w", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" }, { "command": "gitlens.diffWithWorking", "key": "shift+alt+w", "mac": "shift+alt+w", - "when": "editorTextFocus" + "when": "editorTextFocus && gitlens:enabled" } ] },