Changeset 6438 in josm for trunk/src


Ignore:
Timestamp:
2013-12-04T23:25:08+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #7802 - zoom with '+' and '-' in download dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapControler.java

    r6380 r6438  
    4949    private Point iEndSelectionPoint;
    5050
    51     // the SlippyMapChooserComponent
    5251    private final SlippyMapBBoxChooser iSlippyMapChooser;
    5352
     
    5857
    5958    /**
    60      * Create a new OsmMapControl
     59     * Constructs a new {@code SlippyMapControler}.
    6160     */
    6261    public SlippyMapControler(SlippyMapBBoxChooser navComp, JPanel contentPane, SizeButton sizeButton, SourceButton sourceButton) {
    63         this.iSlippyMapChooser = navComp;
     62        iSlippyMapChooser = navComp;
    6463        iSlippyMapChooser.addMouseListener(this);
    6564        iSlippyMapChooser.addMouseMotionListener(this);
     
    9998        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, InputEvent.ALT_DOWN_MASK, false), "ZOOM_IN");
    10099        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ADD, 0, false), "ZOOM_IN");
     100        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_PLUS, 0, false), "ZOOM_IN");
     101        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_EQUALS, InputEvent.SHIFT_DOWN_MASK, false), "ZOOM_IN");
    101102        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, InputEvent.CTRL_DOWN_MASK, false), "ZOOM_OUT");
    102103        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, InputEvent.META_DOWN_MASK, false), "ZOOM_OUT");
    103104        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, InputEvent.ALT_DOWN_MASK, false), "ZOOM_OUT");
    104105        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT, 0, false), "ZOOM_OUT");
     106        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, 0, false), "ZOOM_OUT");
    105107
    106108        // action mapping
Note: See TracChangeset for help on using the changeset viewer.