ZoomAction must work when a block is selected on the palette browser
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / palette / view / PaletteManagerView.java
index 2a7b6ea..6dba5e8 100644 (file)
@@ -183,8 +183,8 @@ public class PaletteManagerView extends SwingScilabDockablePanel implements Simp
 
         stb.add(ZoomAction.createButtonZoomIn());
         stb.add(ZoomAction.createButtonZoomOut());
-
-        ZoomAction.registerKeyAction(this);
+        ZoomAction.registerKeyAction(getPanel().getActionMap(), getPanel().getInputMap());
+        ZoomAction.registerKeyAction(getTree().getActionMap(), getTree().getInputMap());
 
         setToolBar(toolbar);