feat(editor): Open Focus Panel on canvas action button click (no-changelog) (#16698)

This commit is contained in:
Daria
2025-06-25 14:05:37 +03:00
committed by GitHub
parent 3835cb31ea
commit 781b680f2a
5 changed files with 43 additions and 11 deletions

View File

@@ -102,6 +102,7 @@ const emit = defineEmits<{
'create:workflow': [];
'drag-and-drop': [position: XYPosition, event: DragEvent];
'tidy-up': [CanvasLayoutEvent];
'toggle:focus-panel': [];
'viewport:change': [viewport: ViewportTransform, dimensions: Dimensions];
'selection:end': [position: XYPosition];
'open:sub-workflow': [nodeId: string];
@@ -315,6 +316,7 @@ const keyMap = computed(() => {
f2: emitWithLastSelectedNode((id) => emit('update:node:name', id)),
tab: () => emit('create:node', 'tab'),
shift_s: () => emit('create:sticky'),
shift_f: () => emit('toggle:focus-panel'),
ctrl_alt_n: () => emit('create:workflow'),
ctrl_enter: () => emit('run:workflow'),
ctrl_s: () => emit('save:workflow'),