Changeset 17806 in josm for trunk/src/org
- Timestamp:
- 2021-04-20T21:08:58+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r16509 r17806 22 22 23 23 /** 24 * Action shortcut (ctrl-shift-down by default), made public in order to be used from {@code GettingStarted} page. 25 */ 26 public static final Shortcut SHORTCUT = 27 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download data")), KeyEvent.VK_DOWN, Shortcut.CTRL_SHIFT); 28 29 /** 24 30 * Constructs a new {@code DownloadAction}. 25 31 */ 26 32 public DownloadAction() { 27 33 super(tr("Download data..."), "download", tr("Download map data from a server of your choice"), 28 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download data")), KeyEvent.VK_DOWN, Shortcut.CTRL_SHIFT), 29 true, false); 34 SHORTCUT, true, false); 30 35 setHelpId(ht("/Action/Download")); 31 36 } -
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r17322 r17806 20 20 import javax.swing.event.HyperlinkListener; 21 21 22 import org.openstreetmap.josm.actions.DownloadAction; 22 23 import org.openstreetmap.josm.actions.DownloadPrimitiveAction; 23 24 import org.openstreetmap.josm.actions.HistoryInfoAction; … … 139 140 + "</h1><h2 align=\"center\">" + tr("Downloading \"Message of the day\"") + "</h2></html>"); 140 141 // clear the build-in command ctrl+shift+O, ctrl+space, ctrl+H because it is used as shortcut in JOSM 142 lg.getInputMap(JComponent.WHEN_FOCUSED).put(DownloadAction.SHORTCUT.getKeyStroke(), "none"); 141 143 lg.getInputMap(JComponent.WHEN_FOCUSED).put(DownloadPrimitiveAction.SHORTCUT.getKeyStroke(), "none"); 142 144 lg.getInputMap(JComponent.WHEN_FOCUSED).put(MenuItemSearchDialog.Action.SHORTCUT.getKeyStroke(), "none");
Note:
See TracChangeset
for help on using the changeset viewer.