Changeset 17806 in josm for trunk/src


Ignore:
Timestamp:
2021-04-20T21:08:58+02:00 (3 years ago)
Author:
simon04
Message:

fix #17838 - Cmd+Shift+Down selects text on the welcome screen

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r16509 r17806  
    2222
    2323    /**
     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    /**
    2430     * Constructs a new {@code DownloadAction}.
    2531     */
    2632    public DownloadAction() {
    2733        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);
    3035        setHelpId(ht("/Action/Download"));
    3136    }
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r17322 r17806  
    2020import javax.swing.event.HyperlinkListener;
    2121
     22import org.openstreetmap.josm.actions.DownloadAction;
    2223import org.openstreetmap.josm.actions.DownloadPrimitiveAction;
    2324import org.openstreetmap.josm.actions.HistoryInfoAction;
     
    139140                + "</h1><h2 align=\"center\">" + tr("Downloading \"Message of the day\"") + "</h2></html>");
    140141        // 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");
    141143        lg.getInputMap(JComponent.WHEN_FOCUSED).put(DownloadPrimitiveAction.SHORTCUT.getKeyStroke(), "none");
    142144        lg.getInputMap(JComponent.WHEN_FOCUSED).put(MenuItemSearchDialog.Action.SHORTCUT.getKeyStroke(), "none");
Note: See TracChangeset for help on using the changeset viewer.