fix(editor): Restore V1 keybinding, Space Key to toggle panning (#10841)

This commit is contained in:
Raúl Gómez Morales
2024-09-18 09:10:51 +02:00
committed by GitHub
parent c1d88f3bb3
commit 5a1db6db1a
2 changed files with 8 additions and 5 deletions

View File

@@ -122,7 +122,10 @@ const classes = computed(() => ({
const disableKeyBindings = computed(() => !props.keyBindings);
const panningKeyCode = 'Shift';
/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#whitespace_keys
*/
const panningKeyCode = ' ';
const isPanningEnabled = ref(false);
onKeyDown(panningKeyCode, () => {