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

ENTER doesn't cancel FileChooser when Cancel button has focus

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0_03"
      Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
      Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows Vista Ultimate
      Microsoft Windows [Version 6.0.6000]

      A DESCRIPTION OF THE PROBLEM :
      The file chooser should be canceled when ENTER is pressed and the Cancel button has the focus.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Please follow the below steps to reproduce the issue.

      1. Launch the JFileChooser demo.
      2. Click on "Show FileChooser" button.
      3. Select a file
      4. Tab to move the focus to "Cancel"
      5. Hit ENTER

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The file chooser should be canceled.
      ACTUAL -
      The selected file is chosen.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Space bar can be used to cancel the file chooser when the Cancel has the focus, or ESCAPE.

            rupashka Pavel Porvatov (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: