Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132091

macOS: Key modifiers aren't ignored when dragging 'within the application'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.2, 6.9.0 Beta2, 6.10.0 FF
    • 6.5
    • GUI: Drag and Drop
    • None
    • Tested on Sonoma 14.7.1 with an M2 processor
    • macOS
    • 7740ac36d (dev), c39a944e7 (6.9), 155e81418 (6.8)

    Description

      This was broken by QTBUG-99471.

      When running the draggableicons example on macOS I can force a move by pressing cmd and force a copy by pressing alt. On Windows and Linux this is not possible (as expected).

      Note that the fix for QTBUG-99471 wrongly assumes that sourceOperationMaskForDraggingContext is called for whichever context something is dragged to. In my tests sourceOperationMaskForDraggingContext was always called twice when starting a drag, first with NSDraggingContextWithinApplication and then with NSDraggingContextOutsideApplication.

      Attachments

        Issue Links

          Activity

            People

              tpochep Timur Pocheptsov
              simon.geisseler Simon Geisseler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: