fix: add Meta key to panning activator key codes on new canvas

This commit is contained in:
Alex Grozav 2024-10-29 15:55:30 +02:00
parent 60cdf0ba44
commit 4e59b6e547

View file

@ -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 * @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 isPanningEnabled = ref(false);
const selectionKeyCode = ref<true | null>(true); const selectionKeyCode = ref<true | null>(true);