Description
π Bug Report
Using the ListView Drag and Drop -- draggable rows allow copy and link Storybook Story, after selecting an item to drag using the keyboard and moving keyboard focus the drop target, try to drop as a link using Alt+Enter on Windows/Control+Enter on macOS keyboard combination.
π€ Expected Behavior
Drag and Drop should fire events to complete a dropOperation: "link"
on the drop target onDrop
, dragEnd
, onDropExit
.
π― Current Behavior
Drag and Drop only allows copy
or cancel
drop operations, Alt+Enter
triggers the DragSession.activate()
method, while Ctrl+Enter
triggers a copy
drop operation rather than a link
.
π Possible Solution
We need to determine the allowed drop operations when the Enter key is pressed using a modifier on a drop target, here:
react-spectrum/packages/@react-aria/dnd/src/DragManager.ts
Lines 217 to 248 in e044ef7
π¦ Context
FY23 Accessibility Audit
π» Code Sample
π Your Environment
Software | Version(s) |
---|---|
react-spectrum | @adobe/[email protected] |
Browser | Chrome Version 111.0.5563.64 (Official Build) (arm64) |
Operating System | macOS Ventura 13.2.1 (22D68) |
π§’ Your Company/Team
π· Tracking Issue (optional)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status