zoom-levels: fix to recognize the numpad "-" key to zoom out

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@769 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-07-22 16:03:49 +00:00
parent b52415aa3d
commit a1fc7c20a2

View file

@ -185,6 +185,7 @@ public class MainWindow extends JFrame
InputMap inputMap = getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
inputMap.put(KeyStroke.getKeyStroke("ADD"), "zoomIn");
inputMap.put(KeyStroke.getKeyStroke("shift EQUALS"), "zoomIn");
inputMap.put(KeyStroke.getKeyStroke("SUBTRACT"), "zoomOut");
inputMap.put(KeyStroke.getKeyStroke("MINUS"), "zoomOut");
getRootPane().getActionMap().put("zoomIn", new AbstractAction() {