From 151d2368bbc86890ef56b784688ca8c47568ce1c Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 15 Jul 2016 10:24:41 +0300 Subject: [PATCH] Fixes #8794: Bind ctrlCmd+a only when editor has text focus --- src/vs/editor/common/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/config/config.ts b/src/vs/editor/common/config/config.ts index 562c0e03275..b4489143223 100644 --- a/src/vs/editor/common/config/config.ts +++ b/src/vs/editor/common/config/config.ts @@ -405,6 +405,6 @@ KeybindingsRegistry.registerCommandDesc({ id: 'editor.action.selectAll', handler: selectAll, weight: KeybindingsRegistry.WEIGHT.editorCore(), - when: null, + when: KbExpr.has(editorCommon.KEYBINDING_CONTEXT_EDITOR_TEXT_FOCUS), primary: KeyMod.CtrlCmd | KeyCode.KEY_A }); -- GitLab