JAL-2993 AlignFrame listen for keystrokes in OverviewPanel
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 23 May 2018 16:14:17 +0000 (17:14 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 23 May 2018 16:14:17 +0000 (17:14 +0100)
src/jalview/gui/AlignFrame.java

index 9821e9e..a27b495 100644 (file)
@@ -3259,6 +3259,10 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
                 alignPanel.setOverviewPanel(null);
               };
             });
+    if (getKeyListeners().length > 0)
+    {
+      frame.addKeyListener(getKeyListeners()[0]);
+    }
 
     alignPanel.setOverviewPanel(overview);
   }