From 7ee6dfa21efc89697b8289a6ff3e34125cd65e06 Mon Sep 17 00:00:00 2001 From: Kevin Cunnane Date: Fri, 23 Feb 2018 15:56:17 -0800 Subject: [PATCH] Add shortcut for toggle results pane (#764) --- .../parts/query/common/query.contribution.ts | 19 +++++++++++-------- .../common/taskHistory.contribution.ts | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/sql/parts/query/common/query.contribution.ts b/src/sql/parts/query/common/query.contribution.ts index cb0f92b565..a1cbc756b9 100644 --- a/src/sql/parts/query/common/query.contribution.ts +++ b/src/sql/parts/query/common/query.contribution.ts @@ -132,16 +132,19 @@ actionRegistry.registerWorkbenchAction( RefreshIntellisenseKeyboardAction.LABEL ); -actionRegistry.registerWorkbenchAction( - new SyncActionDescriptor( - ToggleQueryResultsKeyboardAction, - ToggleQueryResultsKeyboardAction.ID, - ToggleQueryResultsKeyboardAction.LABEL - ), - ToggleQueryResultsKeyboardAction.LABEL - ); // Grid actions +actionRegistry.registerWorkbenchAction( + new SyncActionDescriptor( + ToggleQueryResultsKeyboardAction, + ToggleQueryResultsKeyboardAction.ID, + ToggleQueryResultsKeyboardAction.LABEL, + { primary:KeyMod.WinCtrl | KeyMod.Shift | KeyCode.KEY_R }, + QueryEditorVisibleCondition + ), + ToggleQueryResultsKeyboardAction.LABEL +); + KeybindingsRegistry.registerCommandAndKeybindingRule({ id: gridActions.GRID_COPY_ID, weight: KeybindingsRegistry.WEIGHT.workbenchContrib(gridCommandsWeightBonus), diff --git a/src/sql/parts/taskHistory/common/taskHistory.contribution.ts b/src/sql/parts/taskHistory/common/taskHistory.contribution.ts index 288427d981..8638132419 100644 --- a/src/sql/parts/taskHistory/common/taskHistory.contribution.ts +++ b/src/sql/parts/taskHistory/common/taskHistory.contribution.ts @@ -107,7 +107,7 @@ registry.registerWorkbenchAction( TaskHistoryViewletAction.ID, TaskHistoryViewletAction.LABEL, { primary: KeyMod.CtrlCmd | KeyCode.KEY_T }), - 'View: Show Task Histry', + 'View: Show Task History', localize('view', "View") );