Add an option to auto-complete keywords in upper case. Fixes #2686

This commit is contained in:
Akshay Joshi
2018-06-15 10:18:56 +01:00
committed by Dave Page
parent df7b4d55c6
commit b48145f01f
9 changed files with 165 additions and 4 deletions

View File

@@ -136,6 +136,7 @@ function keyboardShortcutsQueryTool(
let downloadCsvKeys = keyboardShortcutConfig['download_csv'];
let nextPanelKeys = keyboardShortcutConfig['move_next'];
let previousPanelKeys = keyboardShortcutConfig['move_previous'];
let toggleCaseKeys = keyboardShortcutConfig['toggle_case'];
if (this.validateShortcutKeys(executeKeys, event)) {
this._stopEventPropagation(event);
@@ -149,6 +150,9 @@ function keyboardShortcutsQueryTool(
} else if (this.validateShortcutKeys(downloadCsvKeys, event)) {
this._stopEventPropagation(event);
queryToolActions.download(sqlEditorController);
} else if (this.validateShortcutKeys(toggleCaseKeys, event)) {
this._stopEventPropagation(event);
queryToolActions.toggleCaseOfSelectedText(sqlEditorController);
} else if ((
(this.isMac() && event.metaKey) ||
(!this.isMac() && event.ctrlKey)