Ignore:
Timestamp:
2016-09-20T11:32:04+02:00 (4 years ago)
Author:
simon04
Message:

see #12224 - Search menu item: make shortcut work when MOTD is focused

File:
1 edited

Legend:

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

    r10601 r11031  
    2323public class DownloadPrimitiveAction extends JosmAction {
    2424
     25    public static final Shortcut SHORTCUT = Shortcut.registerShortcut("system:download_primitive", tr("File: {0}", tr("Download object...")),
     26            KeyEvent.VK_O, Shortcut.CTRL_SHIFT);
     27
    2528    /**
    2629     * Constructs a new {@code DownloadPrimitiveAction}.
     
    2831    public DownloadPrimitiveAction() {
    2932        super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID."),
    30                 Shortcut.registerShortcut("system:download_primitive", tr("File: {0}", tr("Download object...")),
    31                         KeyEvent.VK_O, Shortcut.CTRL_SHIFT), true);
     33                SHORTCUT, true);
    3234        putValue("help", ht("/Action/DownloadObject"));
    3335    }
Note: See TracChangeset for help on using the changeset viewer.