From 4e59b6e5476044594b90bc91a2e317f9275f204f Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 29 Oct 2024 15:55:30 +0200 Subject: [PATCH] fix: add Meta key to panning activator key codes on new canvas --- packages/editor-ui/src/components/canvas/Canvas.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/canvas/Canvas.vue b/packages/editor-ui/src/components/canvas/Canvas.vue index b09302cbdd..e8a69dfcdf 100644 --- a/packages/editor-ui/src/components/canvas/Canvas.vue +++ b/packages/editor-ui/src/components/canvas/Canvas.vue @@ -145,7 +145,7 @@ const disableKeyBindings = computed(() => !props.keyBindings); * @see https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#whitespace_keys */ -const panningKeyCode = ' '; +const panningKeyCode = [' ', 'Meta']; const isPanningEnabled = ref(false); const selectionKeyCode = ref(true);