PaletteBrowser - toolbar buttons should be focusable 63/16963/1
Marcos CARDINOT [Sat, 20 Jun 2015 15:09:00 +0000 (12:09 -0300)]
- enable focus on the  navigation and zoom buttons

Change-Id: I09d4a2aa439656c259ab0ff1df9c2817bd9d364d

scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/actions/NavigationAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/actions/ZoomAction.java

index 7f0ec41..a827948 100644 (file)
@@ -58,6 +58,7 @@ public class NavigationAction extends CommonCallBack {
         btnNEXT.setIcon(new ImageIcon(ICON_NEXT));
         btnNEXT.setToolTipText(LABEL_NEXT);
         btnNEXT.addActionListener(getCallBack());
+        btnNEXT.setFocusable(true);
         setEnabledNext(false);
         return btnNEXT;
     }
@@ -72,6 +73,7 @@ public class NavigationAction extends CommonCallBack {
         btnPREV.setIcon(new ImageIcon(ICON_PREV));
         btnPREV.setToolTipText(LABEL_PREV);
         btnPREV.addActionListener(getCallBack());
+        btnPREV.setFocusable(true);
         setEnabledPrev(false);
         return btnPREV;
     }
index d23efad..9cb911e 100644 (file)
@@ -117,6 +117,7 @@ public class ZoomAction extends CommonCallBack {
         btnZoomIn.setIcon(new ImageIcon(ICON_ZOOMIN));
         btnZoomIn.setToolTipText(LABEL_ZOOMIN);
         btnZoomIn.addActionListener(getCallBack());
+        btnZoomIn.setFocusable(true);
         setEnabledZoomIn(true);
         return btnZoomIn;
     }
@@ -131,6 +132,7 @@ public class ZoomAction extends CommonCallBack {
         btnZoomOut.setIcon(new ImageIcon(ICON_ZOOMOUT));
         btnZoomOut.setToolTipText(LABEL_ZOOMOUT);
         btnZoomOut.addActionListener(getCallBack());
+        btnZoomOut.setFocusable(true);
         setEnabledZoomOut(true);
         return btnZoomOut;
     }