Skip to content

Commit

Permalink
Merge pull request #115 from dlsc-software-consulting-gmbh/fix-calend…
Browse files Browse the repository at this point in the history
…ar-picker-focus-issue

Fix missing focus on CalendarPicker
  • Loading branch information
dlemmermann committed Feb 23, 2024
2 parents e617965 + a9e61fa commit a58f3da
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public CalendarPickerSkin(CalendarPicker picker) {
StackPane arrowButton = new StackPane(arrow);
arrowButton.setFocusTraversable(false);
arrowButton.getStyleClass().add("arrow-button"); // using styles similar to combobox, for consistency
arrowButton.setOnMouseClicked(evt -> picker.show());
arrowButton.setOnMouseClicked(evt -> {
picker.requestFocus();
picker.show();
});
HBox.setHgrow(picker.getEditor(), Priority.ALWAYS);

HBox box = new HBox(picker.getEditor(), arrowButton);
Expand Down

0 comments on commit a58f3da

Please sign in to comment.