Skip to content

Commit

Permalink
Use SHORTCUT_DOWN insteadl of CONTROL_DOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Jan 21, 2024
1 parent 1339823 commit 25d27fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void initTopSectionContextMenu(ContextMenu contextMenu, boolean hasRange
setPageRangesItem.setOnAction(e -> eventStudio().broadcast(
new SetPageRangesRequest(getSelectionModel().getSelectedItem().pageSelection.get()),
toolBinding()));
setPageRangesItem.setAccelerator(new KeyCodeCombination(KeyCode.R, KeyCombination.CONTROL_DOWN));
setPageRangesItem.setAccelerator(new KeyCodeCombination(KeyCode.R, KeyCombination.SHORTCUT_DOWN));
selectionChangedConsumer = selectionChangedConsumer.andThen(
e -> setPageRangesItem.setDisable(!e.isSingleSelection()));
contextMenu.getItems().add(setPageRangesItem);
Expand Down

0 comments on commit 25d27fb

Please sign in to comment.