feat(desktop): add DDL shortcut and grid row delete action
This commit is contained in:
19 files changed
+157
-4
No files matched your search
@@ -223,6 +223,10 @@ export function isEditSidebarConnectionShortcut(event: ShortcutLikeEvent, shortc
|
||||
return matchesShortcut(event, actionShortcut("editSidebarConnection", shortcuts));
|
||||
}
|
||||
|
||||
export function isViewTableDdlShortcut(event: ShortcutLikeEvent, shortcuts?: Partial<ShortcutSettings>): boolean {
|
||||
return matchesShortcut(event, actionShortcut("viewTableDdl", shortcuts));
|
||||
}
|
||||
|
||||
export function isQuickOpenShortcut(event: ShortcutLikeEvent, shortcuts?: Partial<ShortcutSettings>): boolean {
|
||||
return matchesShortcut(event, actionShortcut("quickOpen", shortcuts));
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ export type ShortcutActionId =
|
||||
| "pasteSidebarSelection"
|
||||
| "editSidebarConnection"
|
||||
| "openDataInNewTab"
|
||||
| "viewTableDdl"
|
||||
| "sendSelectionToAi";
|
||||
|
||||
export type ShortcutScope = "global" | "editor" | "grid" | "search" | "sidebar";
|
||||
@@ -409,6 +410,12 @@ export const SHORTCUT_DEFINITIONS: ShortcutDefinition[] = [
|
||||
defaultShortcut: "Alt",
|
||||
inputKind: "modifier-only",
|
||||
},
|
||||
{
|
||||
id: "viewTableDdl",
|
||||
labelKey: "settings.shortcutViewTableDdl",
|
||||
scope: "sidebar",
|
||||
defaultShortcut: "Shift+Mod+D",
|
||||
},
|
||||
{
|
||||
id: "sendSelectionToAi",
|
||||
labelKey: "settings.shortcutSendSelectionToAi",
|
||||
|
||||
Reference in new issue
Block a user