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

Cancel and Default buttons still receive onAction events triggered by ESC and Enter keys when they are removed from the scene

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx
    • 2.2.0-beta-b09, Windows 7 x64

      Run the attached app to reproduce the issue. It has three buttons and a TextField.
      Press ESC when focus is not on the TextField. "Cancel button action invoked" is printed in output window.
      Press Enter when focus in in the TextField. "Default button action invoked" is printed in output window.
      Remove buttons from the screen using "remove buttons" button.
      Repeat steps above. The actions are still invoked. It must not happen.

        1. screenshot-2.jpg
          screenshot-2.jpg
          12 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          13 kB
        3. Bug.java
          2 kB

            kwwong Kinsley Wong (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: