feat(app): add new query shortcut
This commit is contained in:
1 parent
ab6c73c687
commit
888d3d8890
8 files changed
+44
-2
No files matched your search
@@ -38,6 +38,7 @@ import {
|
||||
isCloseTabShortcut,
|
||||
isExecuteSqlShortcut,
|
||||
isFocusSearchShortcut,
|
||||
isNewQueryShortcut,
|
||||
isObjectSourceSaveShortcutTarget,
|
||||
isRefreshDataShortcut,
|
||||
isSaveShortcut,
|
||||
@@ -587,6 +588,12 @@ function handleKeydown(e: KeyboardEvent) {
|
||||
contentAreaRef.value?.refreshData();
|
||||
return;
|
||||
}
|
||||
if (isNewQueryShortcut(e, shortcuts)) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
void newQuery();
|
||||
return;
|
||||
}
|
||||
if (isCloseTabShortcut(e, shortcuts)) {
|
||||
e.preventDefault();
|
||||
if (showDriverStore.value) {
|
||||
|
||||
Reference in new issue
Block a user