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

[ComboBox, DatePicker] DatePicker and editable ComboBox consume ESC key event, also when no popup is shown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8u60
    • 8u20
    • javafx
    • Mac OS X 10.9, Windows 7

      I'm using a DatePicker control inside a Dialog window (created with the ControlsFX library). The dialog needs to close when the user presses the ESC button. It works perfectly as long as the DatePicker control does not have the focus. When other textfields, buttons etc. have the focus, the dialog closes perfectly.

      Here's the problem: the DatePicker consumes the ESC key event when the calendar popup of the DatePicker is shown. It closes the calendar in this case, that's OK.
      But it must not consume the ESC key event when no calendar popup is shown, the event needs to be passed to the next responsible consumer. Then the dialog would close properly.

            leifs Leif Samuelsson (Inactive)
            ssaringjfx Stefan Saring (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: