Changeset 6363 in josm


Ignore:
Timestamp:
2013-11-03T01:45:21+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #7802 - Zoom in with "+" does not work

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java

    r6084 r6363  
    1111import org.openstreetmap.josm.tools.Shortcut;
    1212
     13/**
     14 * Zoom in map.
     15 * @since 770
     16 */
    1317public final class ZoomInAction extends JosmAction {
    1418
     19    /**
     20     * Constructs a new {@code ZoomInAction}.
     21     */
    1522    public ZoomInAction() {
    1623        super(
     
    1825                "dialogs/zoomin",
    1926                tr("Zoom In"),
     27                // Although it might be possible on few custom keyboards, the vast majority of layouts do not have a direct '+' key, see below
    2028                Shortcut.registerShortcut("view:zoomin", tr("View: {0}", tr("Zoom In")),KeyEvent.VK_PLUS, Shortcut.DIRECT),
    2129                true
    2230        );
    2331        putValue("help", ht("/Action/ZoomIn"));
     32        // On standard QWERTY, AZERTY and other common layouts the '+' key is obtained with Shift+EQUALS
     33        Main.registerActionShortcut(this,
     34                Shortcut.registerShortcut("view:zoominbis", tr("View: {0}", tr("Zoom In")),
     35                    KeyEvent.VK_EQUALS, Shortcut.SHIFT));
    2436        // make numpad + behave like +
    2537        Main.registerActionShortcut(this,
  • trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java

    r6084 r6363  
    1111import org.openstreetmap.josm.tools.Shortcut;
    1212
     13/**
     14 * Zoom out map.
     15 * @since 770
     16 */
    1317public final class ZoomOutAction extends JosmAction {
    1418
     19    /**
     20     * Constructs a new {@code ZoomOutAction}.
     21     */
    1522    public ZoomOutAction() {
    1623        super(tr("Zoom Out"), "dialogs/zoomout", tr("Zoom Out"),
Note: See TracChangeset for help on using the changeset viewer.