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

[Spinner] Default button not activated on ENTER

    XMLWordPrintable

    Details

      Description

      This is analogue to JDK-8096725 (was fixed for ComboBox and DatePicker), just for Spinner and only for ENTER (ESC is working as expected, at least in regard to the cancel button)

      To reproduce, take the example from that bug, add an editable spinner:

      // JW: added spinner
      Spinner<Integer> spinner = new Spinner<>(0, 200, 20);
      spinner.setEditable(true);
      ...
      vbox.getChildren().add(spinner);

      then run,
      - edit spinner
      - press enter
      - expected: okay button activated, that is OK printed
      - actual: nothing happens

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arapte Ambarish Rapte
              Reporter:
              fastegal Jeanette Winzenburg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: