Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242805

The macOS toolkit does not support ACTION_COPY DnD action via CTRL+Click

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 11, 14, 15, 16
    • Fix Version/s: 16
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      os_x

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                serb Sergey Bylokhov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: