Ignore:
Timestamp:
2008-10-05T17:06:27+02:00 (18 years ago)
Author:
stoecker
Message:

close bug #1622. Keyboard shortcuts and specific OS handling

File:
1 edited

Legend:

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

    r859 r1023  
    1717import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask;
    1818import org.openstreetmap.josm.tools.GBC;
     19import org.openstreetmap.josm.tools.ShortCut;
    1920
    2021/**
     
    2728 */
    2829public class DownloadAction extends JosmAction {
    29        
     30
    3031        public DownloadDialog dialog;
    31        
     32
    3233        public DownloadAction() {
    33                 super(tr("Download from OSM ..."), "download", tr("Download map data from the OSM server."), KeyEvent.VK_D, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true);
     34                super(tr("Download from OSM ..."), "download", tr("Download map data from the OSM server."),
     35                ShortCut.registerShortCut("file:download", tr("File: Download"), KeyEvent.VK_D, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true);
    3436        }
    3537
    3638        public void actionPerformed(ActionEvent e) {
    3739                dialog = new DownloadDialog();
    38                
     40
    3941                JPanel downPanel = new JPanel(new GridBagLayout());
    4042                downPanel.add(dialog, GBC.eol().fill(GBC.BOTH));
Note: See TracChangeset for help on using the changeset viewer.