Make esc first cancel selection

Fix #99184
This commit is contained in:
Rob Lourens 2020-06-02 17:53:29 -05:00
parent e8acbb5f38
commit 1767734042

View file

@ -621,7 +621,11 @@ registerAction2(class extends NotebookAction {
},
icon: { id: 'codicon/check' },
keybinding: {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, InputFocusedContext, EditorContextKeys.hoverVisible.toNegated()),
when: ContextKeyExpr.and(
NOTEBOOK_EDITOR_FOCUSED,
InputFocusedContext,
EditorContextKeys.hoverVisible.toNegated(),
EditorContextKeys.hasNonEmptySelection.toNegated()),
primary: KeyCode.Escape,
weight: EDITOR_WIDGET_ACTION_WEIGHT - 5
},