diff --git a/frontend/src/constants/shortcuts/DashboardShortcuts.ts b/frontend/src/constants/shortcuts/DashboardShortcuts.ts index ee861708f75..aaa81cb3c16 100644 --- a/frontend/src/constants/shortcuts/DashboardShortcuts.ts +++ b/frontend/src/constants/shortcuts/DashboardShortcuts.ts @@ -9,9 +9,10 @@ export const DashboardShortcuts = { export const DashboardShortcutsName = { SaveChanges: `${userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'}+s`, + DiscardChanges: `${userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'}+d`, }; export const DashboardShortcutsDescription = { - SaveChanges: 'Save Changes', - DiscardChanges: 'Discard Changes', + SaveChanges: 'Save Changes for panel', + DiscardChanges: 'Discard Changes for panel', }; diff --git a/frontend/src/constants/shortcuts/QBShortcuts.ts b/frontend/src/constants/shortcuts/QBShortcuts.ts index 56fea081df6..d1d841595ab 100644 --- a/frontend/src/constants/shortcuts/QBShortcuts.ts +++ b/frontend/src/constants/shortcuts/QBShortcuts.ts @@ -13,5 +13,5 @@ export const QBShortcutsName = { }; export const QBShortcutsDescription = { - StageAndRunQuery: 'Stage and Run the query', + StageAndRunQuery: 'Stage and Run the current query', }; diff --git a/frontend/src/pages/Shortcuts/utils.ts b/frontend/src/pages/Shortcuts/utils.ts index 21dfa287676..5f03b0e86aa 100644 --- a/frontend/src/pages/Shortcuts/utils.ts +++ b/frontend/src/pages/Shortcuts/utils.ts @@ -1,4 +1,9 @@ import { TableProps } from 'antd'; +import { + DashboardShortcuts, + DashboardShortcutsDescription, + DashboardShortcutsName, +} from 'constants/shortcuts/DashboardShortcuts'; import { GlobalShortcuts, GlobalShortcutsDescription, @@ -9,16 +14,25 @@ import { LogsExplorerShortcutsDescription, LogsExplorerShortcutsName, } from 'constants/shortcuts/logsExplorerShortcuts'; +import { + QBShortcuts, + QBShortcutsDescription, + QBShortcutsName, +} from 'constants/shortcuts/QBShortcuts'; // eslint-disable-next-line @typescript-eslint/naming-convention export const ALL_SHORTCUTS: Record> = { 'Global Shortcuts': GlobalShortcuts, 'Logs Explorer Shortcuts': LogsExplorerShortcuts, + 'Query Builder Shortcuts': QBShortcuts, + 'Dashboard Shortcuts': DashboardShortcuts, }; export const ALL_SHORTCUTS_LABEL: Record> = { 'Global Shortcuts': GlobalShortcutsName, 'Logs Explorer Shortcuts': LogsExplorerShortcutsName, + 'Query Builder Shortcuts': QBShortcutsName, + 'Dashboard Shortcuts': DashboardShortcutsName, }; export const ALL_SHORTCUTS_DESCRIPTION: Record< @@ -27,6 +41,8 @@ export const ALL_SHORTCUTS_DESCRIPTION: Record< > = { 'Global Shortcuts': GlobalShortcutsDescription, 'Logs Explorer Shortcuts': LogsExplorerShortcutsDescription, + 'Query Builder Shortcuts': QBShortcutsDescription, + 'Dashboard Shortcuts': DashboardShortcutsDescription, }; export const shortcutColumns = [