mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Restore V1 keybinding, Space Key to toggle panning (#10841)
This commit is contained in:
committed by
GitHub
parent
c1d88f3bb3
commit
5a1db6db1a
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user