Changeset 17150 in josm


Ignore:
Timestamp:
2020-10-10T22:39:18+02:00 (2 weeks ago)
Author:
simon04
Message:

fix #7506 - Add shortcut ALT+R for relation editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r17031 r17150  
    2121import javax.swing.AbstractAction;
    2222import javax.swing.AbstractListModel;
     23import javax.swing.Action;
    2324import javax.swing.DefaultListSelectionModel;
    2425import javax.swing.FocusManager;
     
    177178        pane.add(new JScrollPane(displaylist), BorderLayout.CENTER);
    178179
     180        Shortcut editShortcut = Shortcut.registerShortcut("relation:edit", tr("Open Relation Editor"), KeyEvent.VK_R, Shortcut.ALT);
     181        editShortcut.setTooltip(editAction, String.valueOf(editAction.getValue(Action.SHORT_DESCRIPTION)));
     182        MainApplication.registerActionShortcut(editAction, editShortcut);
    179183        SideButton editButton = new SideButton(editAction, false);
    180184        recentRelationsAction = new RecentRelationsAction(editButton);
Note: See TracChangeset for help on using the changeset viewer.