Ignore:
Timestamp:
2023-10-02T20:15:36+02:00 (14 months ago)
Author:
taylor.smock
Message:

Fix #23208: Add user-definable shortcut for Replace Membership action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/replacegeometry/ReplaceMembershipAction.java

    r35671 r36154  
    66
    77import java.awt.event.ActionEvent;
     8import java.awt.event.KeyEvent;
    89import java.util.ArrayList;
    910import java.util.Collection;
     
    2627import org.openstreetmap.josm.gui.Notification;
    2728import org.openstreetmap.josm.tools.MultiMap;
     29import org.openstreetmap.josm.tools.Shortcut;
    2830
    2931/**
     
    3234public class ReplaceMembershipAction extends JosmAction {
    3335
     36    /**
     37     * Create a new {@link ReplaceMembershipAction}
     38     */
    3439    public ReplaceMembershipAction() {
    3540        super(
    3641                tr("Replace Membership"), (String) null,
    37                 tr("In relations where the selected object is member of, replace it with a new one"), null, false,
    38                 ReplaceMembershipAction.class.getName(), true);
     42                tr("In relations where the selected object is member of, replace it with a new one"),
     43                Shortcut.registerShortcut("utilsplugin2:tools:replacegeometry", tr("More tools: {0}", tr("Replace Membership")),
     44                        KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
     45                false, ReplaceMembershipAction.class.getName(), true);
    3946    }
    4047
Note: See TracChangeset for help on using the changeset viewer.