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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      2.2.0-beta-b09, Windows 7 x64

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: