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

RT-34620: [ComboBox, DatePicker] Buttons set to default/cancel are not reacting to ComboBox enter/esc keys

    Details

      Description

      See the attached sample.

      Run the sample.
      Click on the TextField (the second element) and press enter. You will see that the button (which is set to "defaultButton") is pressed.
      Now click on the ComboBox textField like you would want to type something. Press enter and you will see that the button is not being pressed.

      Is it a normal behavior?

      If it is, comment out the specified line in the sample. I've made a link between the comboBox actionProperty and the button's one.
      Launch the sample, the caret should be inside the comboBox textField. Press enter et nothing happens. Now click on the second textField and click back to the comboBox textField. Press enter and then the button is triggered.

      Is it a normal behavior?

      Sample code: http://pastebin.com/SCcV3yDc

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                shadzic Samir Hadzic
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: