Changeset 15023 in josm for trunk/src/org


Ignore:
Timestamp:
2019-04-27T08:33:14+02:00 (6 years ago)
Author:
GerdP
Message:

see #17654: Allow to configure shortcut for "Move Node" action

File:
1 edited

Legend:

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

    r14960 r15023  
    66
    77import java.awt.event.ActionEvent;
     8import java.awt.event.KeyEvent;
    89import java.util.Collection;
    910
     
    1617import org.openstreetmap.josm.gui.MainApplication;
    1718import org.openstreetmap.josm.gui.dialogs.LatLonDialog;
     19import org.openstreetmap.josm.tools.Shortcut;
    1820
    1921/**
     
    2830    public MoveNodeAction() {
    2931        super(tr("Move Node..."), "movenode", tr("Edit latitude and longitude of a node."),
    30                 null, /* no shortcut */
    31                 true);
     32                Shortcut.registerShortcut("movenode", tr("Edit: {0}", tr("Move Node...")),
     33                        KeyEvent.VK_M, Shortcut.NONE), true);
    3234        setHelpId(ht("/Action/MoveNode"));
    3335    }
Note: See TracChangeset for help on using the changeset viewer.