JDK-8242805 : The macOS toolkit does not support ACTION_COPY DnD action via CTRL+Click
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,14,15,16,17,19
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2020-04-15
  • Updated: 2022-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
According to the spec 
https://docs.oracle.com/javase/7/docs/api/java/awt/dnd/DragSourceDragEvent.html

The Ctrl+Click should cause ACTION_COPY action but in fact, ACTION_NONE is occurred during the drop.

We have a few tests for this functionality:
java/awt/dnd/CustomDragCursorTest/CustomDragCursorTest.html
java/awt/dnd/DnDCursorCrashTest/DnDCursorCrashTest.html
java/awt/dnd/DnDRemoveFocusOwnerCrashTest/DnDRemoveFocusOwnerCrashTest.html
java/awt/dnd/DragExitBeforeDropTest/DragExitBeforeDropTest.html
java/awt/dnd/DroppingVMCrashTest/DroppingVMCrashTest.html

But unfortunately, all of them pass on macOS due to bug in the robot, which skips the pressing Ctrl and run DnD just by mouse.
Comments
I have checked, that if I disable robot, and execute the steps manually the tests fail.
15-04-2020