Skip to content

Commit

Permalink
CSSTUDIO-1995 Make the Symbol widget focus-traversable (selectable us…
Browse files Browse the repository at this point in the history
…ing the tab-key).
  • Loading branch information
abrahamwolk committed Aug 4, 2023
1 parent ec85abb commit bef36b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ protected StackPane createJFXNode ( ) throws Exception {
symbolChanged(null, null, null);

if (!toolkit.isEditMode() && model_widget.propEnabled().getValue() && model_widget.propRunActionsOnMouseClick().getValue()) {
imageView.focusTraversableProperty().set(true);
imageView.setStyle("-fx-cursor: hand;");

ColorAdjust[] clickEffect = { null }; // Values are wrapped in arrays as a workaround of the fact that Java doesn't allow non-final variables to be captured by closures.
Expand Down

0 comments on commit bef36b7

Please sign in to comment.