Skip to content

Commit

Permalink
Brought back requestFocus() call when the user clicks on a DateControl.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Oct 3, 2022
1 parent 1c62a57 commit b8fb276
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ public abstract class DateControl extends CalendarFXControl {
* with default implementations.
*/
protected DateControl() {
setOnMouseClicked(evt -> requestFocus());

setUsagePolicy(count -> {
if (count < 0) {
throw new IllegalArgumentException("usage count can not be smaller than zero, but was " + count);
Expand Down

0 comments on commit b8fb276

Please sign in to comment.