Skip to content

Commit

Permalink
fix: navigation key-shortcuts work for both viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Oct 18, 2023
1 parent 0c54596 commit 4103b8d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/bigwarp/BigWarp.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,13 @@ public boolean accept( final File f )
appearanceManager.addLafComponent( fileChooser );
SwingUtilities.invokeLater(() -> appearanceManager.updateLookAndFeel());

final Actions navigationActions = new Actions( inputTriggerConfig, "navigation" );
navigationActions.install( getViewerFrameP().getKeybindings(), "navigation" );
NavigationKeys.install( navigationActions, getViewerFrameP().getViewerPanel(), options.values.is2D() );
navigationActions.install( getViewerFrameQ().getKeybindings(), "navigation" );
NavigationKeys.install( navigationActions, getViewerFrameQ().getViewerPanel(), options.values.is2D() );
final Actions navigationActionsP = new Actions( inputTriggerConfig, "navigation" );
navigationActionsP.install( getViewerFrameP().getKeybindings(), "navigation" );
NavigationKeys.install( navigationActionsP, getViewerFrameP().getViewerPanel(), options.values.is2D() );

final Actions navigationActionsQ = new Actions( inputTriggerConfig, "navigation" );
navigationActionsQ.install( getViewerFrameQ().getKeybindings(), "navigation" );
NavigationKeys.install( navigationActionsQ, getViewerFrameQ().getViewerPanel(), options.values.is2D() );

final BigWarpActions bwActionsP = new BigWarpActions( inputTriggerConfig, "bigwarp" );
final BigWarpActions bwActionsQ = new BigWarpActions( inputTriggerConfig, "bigwarp" );
Expand Down

0 comments on commit 4103b8d

Please sign in to comment.