How to change drag event handler behavior based on keyboard change (e.g. whether CTRL is pressed) #524
Unanswered
erik-jenkins
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 there! First of all, thanks @clauderic for all your work on this library!
I'm using this library to implement a kind of window manager in React. Certain window managers for Linux have a feature where you can hold CTRL + click anywhere in the window to move the window, or hold ALT + click anywhere in the window and move the mouse to resize the window.
I'm wondering how we can detect whether a given modifier key was pressed during the
onDragMove
/onDragEnd
events. So far, my ideas are:DragMoveEvent.active.data
object about whether a given modifier was pressed when the event fired. ORonDragMove
handlerDndContext
s, with one sensor per context.Has anyone tried anything similar to what I'm describing?
Beta Was this translation helpful? Give feedback.
All reactions