Replies: 2 comments 2 replies
-
You can see this happening in the List example:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It's great that they made this repo. Bummer that they ignore it. I'm not able to start dragging while holding the shift key, with no clear way to override this behavior. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When monitoring for an onDrop event, I want to detect if the user has held down the control key or alt key to determine if a move or copy should occur. However, it seems that the onDrop event is cancelled on this occasion and dragend is fired instead. The dropTargets array is also empty. Why is this happening and is it at all possible to allow users to do a drop with the control or alt key down?
The input structure seems to suggest this, as it holds attributes for these keys as well as meta and shift, but in practice, only the shift key will result in a successful drop.
I noted that in the dragend listener in lifecycle-manager, state.current does show the attributes for ctrlKey and the others to be set to true, but this gets overwritten by the input from the event, where these attributes are false, even if the respective keys are held down.
Beta Was this translation helpful? Give feedback.
All reactions