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:
parent
b52415aa3d
commit
a1fc7c20a2
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Reference in a new issue