feat(editor): Add Alt+Meta+O keyboard shortcut for the About modal (#18530)

This commit is contained in:
Charlie Kolb
2025-08-19 15:10:40 +02:00
committed by GitHub
parent df54c10172
commit 94526b9975
4 changed files with 17 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ import {
VIEWS,
NDV_UI_OVERHAUL_EXPERIMENT,
WORKFLOW_SETTINGS_MODAL_KEY,
ABOUT_MODAL_KEY,
} from '@/constants';
import { useSourceControlStore } from '@/stores/sourceControl.store';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
@@ -139,6 +140,7 @@ import CanvasChatButton from '@/components/canvas/elements/buttons/CanvasChatBut
import { useFocusPanelStore } from '@/stores/focusPanel.store';
import { useAITemplatesStarterCollectionStore } from '@/experiments/aiTemplatesStarterCollection/stores/aiTemplatesStarterCollection.store';
import { useReadyToRunWorkflowsStore } from '@/experiments/readyToRunWorkflows/stores/readyToRunWorkflows.store';
import { useKeybindings } from '@/composables/useKeybindings';
defineOptions({
name: 'NodeView',
@@ -254,6 +256,9 @@ const {
const { extractWorkflow } = useWorkflowExtraction();
const { applyExecutionData } = useExecutionDebugging();
useClipboard({ onPaste: onClipboardPaste });
useKeybindings({
ctrl_alt_o: () => uiStore.openModal(ABOUT_MODAL_KEY),
});
const isLoading = ref(true);
const isBlankRedirect = ref(false);