Add keyboard shortcuts for focus on current query and go to next output query tab (#1153)

* add go to next output query tab shotcut

* add a new keyboard shortcut for focus on current query

* minor change
This commit is contained in:
Abbie Petchtes
2018-04-13 11:11:25 -07:00
committed by GitHub
parent 9a5f51bfbf
commit 13fb9fdfd2
9 changed files with 86 additions and 2 deletions

View File

@@ -165,6 +165,9 @@ export abstract class GridParentComponent {
case GridContentEvents.SaveAsExcel:
self.sendSaveRequest(SaveFormat.EXCEL);
break;
case GridContentEvents.GoToNextQueryOutputTab:
self.goToNextQueryOutputTab();
break;
default:
error('Unexpected grid content event type "' + type + '" sent');
break;
@@ -272,6 +275,9 @@ export abstract class GridParentComponent {
return '';
}
protected goToNextQueryOutputTab(): void {
}
private initShortcutsBase(): void {
let shortcuts = {
'ToggleResultPane': () => {
@@ -297,6 +303,9 @@ export abstract class GridParentComponent {
},
'SaveAsExcel': () => {
this.sendSaveRequest(SaveFormat.EXCEL);
},
'GoToNextQueryOutputTab': () => {
this.goToNextQueryOutputTab();
}
};