Skip to content

Commit

Permalink
Fixes #182 Right click on event triggers same action as left click
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 20, 2022
1 parent 01940cb commit 4134715
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ protected EntryViewBase(Entry<?> entry) {

focusedProperty().addListener(it -> processFocus());

addEventHandler(MouseEvent.MOUSE_CLICKED, evt -> showDetails(evt, evt.getScreenX(), evt.getScreenY()));
addEventHandler(MouseEvent.MOUSE_CLICKED, evt -> {
if (evt.getButton().equals(PRIMARY) && evt.getClickCount() == 2) {
showDetails(evt, evt.getScreenX(), evt.getScreenY());
}
});

addEventHandler(ContextMenuEvent.CONTEXT_MENU_REQUESTED, evt -> {
DateControl dateControl = getDateControl();
if (dateControl != null) {
Expand Down

0 comments on commit 4134715

Please sign in to comment.