Ignore:
Timestamp:
2011-02-16T13:29:23+01:00 (14 years ago)
Author:
upliner
Message:

register shortcuts for external tools, fixes #j5939

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtToolAction.java

    r21930 r25338  
    44
    55import java.awt.event.ActionEvent;
     6import java.awt.event.KeyEvent;
    67import java.awt.event.MouseEvent;
    78
     
    1112import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1213import org.openstreetmap.josm.tools.ImageProvider;
     14import org.openstreetmap.josm.tools.Shortcut;
    1315
    1416// TODO: Merge with ExtTool class?
     
    2022    public ExtToolAction(ExtTool tool) {
    2123        super(tr(tool.name), "empty", tool.description,
     24                Shortcut.registerShortcut(tr("exttool:{0}", tool.name), tr("External Tool: {0}", tool.name),
     25                        KeyEvent.VK_K, Shortcut.GROUP_NONE, KeyEvent.CTRL_DOWN_MASK),
    2226                null,
    2327                ImageProvider.getCursor("crosshair", null));
Note: See TracChangeset for help on using the changeset viewer.