Changeset 17049 in josm


Ignore:
Timestamp:
2020-09-22T15:48:59+02:00 (4 years ago)
Author:
stoecker
Message:

fix #19836 - add possibility for shortcuts to two actions

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

Legend:

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

    r16868 r17049  
    55
    66import java.awt.event.ActionEvent;
     7import java.awt.event.KeyEvent;
    78import java.util.concurrent.Future;
    89
     
    1415import org.openstreetmap.josm.io.NetworkManager;
    1516import org.openstreetmap.josm.io.OnlineResource;
     17import org.openstreetmap.josm.tools.Shortcut;
    1618
    1719/**
     
    2325
    2426    private DownloadNotesInViewAction(String iconName) {
    25         super(tr("Download notes in current view"), iconName, tr("Download notes in current view"), null, false,
     27        super(tr("Download notes in current view"), iconName, tr("Download notes in current view"),
     28                Shortcut.registerShortcut("file:downloadnotesinview",
     29                tr("Download notes in current view"), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false,
    2630                "dialogs/notes/download_in_view", true);
    2731    }
  • trunk/src/org/openstreetmap/josm/actions/DownloadOsmInViewAction.java

    r16509 r17049  
    55
    66import java.awt.event.ActionEvent;
     7import java.awt.event.KeyEvent;
    78import java.util.concurrent.Future;
    89
     
    1516import org.openstreetmap.josm.io.NetworkManager;
    1617import org.openstreetmap.josm.io.OnlineResource;
     18import org.openstreetmap.josm.tools.Shortcut;
    1719
    1820/**
     
    2729     */
    2830    public DownloadOsmInViewAction() {
    29         super(tr("Download in current view"), "download_in_view", tr("Download map data from the OSM server in current view"), null, false,
     31        super(tr("Download in current view"), "download_in_view", tr("Download map data from the OSM server in current view"),
     32                Shortcut.registerShortcut("file:downloadosminview",
     33                tr("Download in current view"), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false,
    3034                "dialogs/download_in_view", true);
    3135    }
Note: See TracChangeset for help on using the changeset viewer.