Ignore:
Timestamp:
2016-01-02T14:38:01+01:00 (4 years ago)
Author:
simon04
Message:

Attempt to fix some shortcut parse issues

See wiki:DevelopersGuide/ShortcutsList

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

Legend:

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

    r9226 r9258  
    33
    44import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    5 import static org.openstreetmap.josm.tools.I18n.marktr;
    65import static org.openstreetmap.josm.tools.I18n.tr;
    76
     
    3433public final class DistributeAction extends JosmAction {
    3534
    36     private static final String ACTION_SHORT_NAME = marktr("Distribute Nodes");
    37 
    3835    /**
    3936     * Constructs a new {@code DistributeAction}.
    4037     */
    4138    public DistributeAction() {
    42         super(tr(ACTION_SHORT_NAME), "distribute",
     39        super(tr("Distribute Nodes"), "distribute",
    4340              tr("Distribute the selected nodes to equal distances along a line."),
    44               Shortcut.registerShortcut("tools:distribute", tr("Tool: {0}", tr(ACTION_SHORT_NAME)), KeyEvent.VK_B, Shortcut.SHIFT),
     41              Shortcut.registerShortcut("tools:distribute", tr("Tool: {0}", tr("Distribute Nodes")), KeyEvent.VK_B, Shortcut.SHIFT),
    4542              true);
    4643        putValue("help", ht("/Action/DistributeNodes"));
     
    10097
    10198        // Do it!
    102         Main.main.undoRedo.add(new SequenceCommand(tr(ACTION_SHORT_NAME), cmds));
     99        Main.main.undoRedo.add(new SequenceCommand(tr("Distribute Nodes"), cmds));
    103100        Main.map.repaint();
    104101    }
  • trunk/src/org/openstreetmap/josm/actions/relation/EditRelationAction.java

    r7937 r9258  
    66
    77import java.awt.event.ActionEvent;
     8import java.awt.event.KeyEvent;
    89import java.util.Collection;
    910import java.util.HashSet;
     
    1920import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    2021import org.openstreetmap.josm.tools.ImageProvider;
     22import org.openstreetmap.josm.tools.Shortcut;
    2123
    2224/**
     
    3335        putValue(SHORT_DESCRIPTION, tr("Call relation editor for selected relation"));
    3436        putValue(SMALL_ICON, ImageProvider.get("dialogs", "edit"));
     37        Main.registerActionShortcut(this,
     38                Shortcut.registerShortcut("relations:edit", tr("Edit relation"), KeyEvent.VK_X, Shortcut.ALT));
    3539    }
    3640
Note: See TracChangeset for help on using the changeset viewer.