Custom Keymap: Prevent Default in Absolute Drag Mode #3582
Unanswered
michaelhofer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We would like to move the components in absolute drag mode using the arrow keys. We do this as follows:
Custom Keymap:
The commands are being added as follows:
The moveSelectedElements method just does the following:
However, when moving the elements with arrow keys, the canvas scrolls as well, which is the default bowser behaviour.
How can we prevent the default propagation with the keymaps (e.preventDefault())? Should this be happening automatically, or is there a way to configure that?
Beta Was this translation helpful? Give feedback.
All reactions