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

Mac: [DnD] mac and win has different behavior in part of transfer mode.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 8
    • 7u6
    • javafx
    • None
    • 2.2.0b08. Win7, MacOsX.7

    Description

      Could you review the situation with next test case:
      http://ipg-jets.us.oracle.com/JavaFX/javafx-drafts/2.0/drag_drop/hellodraganddrop.zip

      There is a code:
      source.setOnDragDone(new EventHandler <DragEvent>() {
                  public void handle(DragEvent event) {
                      /* the drag-and-drop gesture ended */
                      System.out.println("onDragDone");
                      /* if the data was successfully moved, clear it */
                      if (event.getTransferMode() == TransferMode.MOVE) { //Here
                          source.setText("");
                      }
                      
                      event.consume();
                  }
              });

      On windows Transfer mode is Move, and on Mac - Copy. Is everything right here?

      Attachments

        Issue Links

          Activity

            People

              pchelko Petr Pchelko (Inactive)
              akirov Alexander Kirov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: