Changeset 10241 in josm for trunk


Ignore:
Timestamp:
2016-05-17T13:28:04+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #12660 - unbind Z shortcut from "Zoom mode" and make it visible in expert mode only

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

Legend:

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

    r8308 r10241  
    2828 *
    2929 * @author imi
     30 * @since 1
    3031 */
    3132public class ZoomAction extends MapMode implements SelectionEnded {
     
    4243    public ZoomAction(MapFrame mapFrame) {
    4344        super(tr("Zoom"), "zoom", tr("Zoom and move map"),
    44                 Shortcut.registerShortcut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), KeyEvent.VK_Z, Shortcut.DIRECT),
     45                Shortcut.registerShortcut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
    4546                mapFrame, ImageProvider.getCursor("normal", "zoom"));
    4647        selectionManager = new SelectionManager(this, true, mapFrame.mapView);
  • trunk/src/org/openstreetmap/josm/gui/MapFrame.java

    r10179 r10241  
    246246        addMapMode(new IconToggleButton(mapModeSelectLasso, true));
    247247        addMapMode(new IconToggleButton(mapModeDraw));
    248         addMapMode(new IconToggleButton(mapModeZoom));
     248        addMapMode(new IconToggleButton(mapModeZoom, true));
    249249        addMapMode(new IconToggleButton(new DeleteAction(this), true));
    250250        addMapMode(new IconToggleButton(new ParallelWayAction(this), true));
Note: See TracChangeset for help on using the changeset viewer.