From a1fc7c20a2c701516f64e25ae78a22722990f0b2 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Mon, 22 Jul 2013 16:03:49 +0000 Subject: [PATCH] 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 --- src/micropolisj/gui/MainWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/micropolisj/gui/MainWindow.java b/src/micropolisj/gui/MainWindow.java index 2c91e40..0c0583d 100644 --- a/src/micropolisj/gui/MainWindow.java +++ b/src/micropolisj/gui/MainWindow.java @@ -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() {