Changeset 400 in josm


Ignore:
Timestamp:
2007-10-17T18:05:40+02:00 (14 years ago)
Author:
gebner
Message:

Add extra shortcut A for the draw mapmode.

File:
1 edited

Legend:

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

    r394 r400  
    88import java.awt.event.KeyEvent;
    99import java.awt.event.MouseEvent;
     10import javax.swing.KeyStroke;
     11import javax.swing.JComponent;
    1012import java.util.ArrayList;
    1113import java.util.Collection;
     
    4446        public DrawAction(MapFrame mapFrame) {
    4547                super(tr("Draw"), "node/autonode", tr("Draw nodes"),
    46                         KeyEvent.VK_N, mapFrame, getCursor());
     48                        KeyEvent.VK_A, mapFrame, getCursor());
     49
     50                // Add extra shortcut N
     51                Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
     52                        KeyStroke.getKeyStroke(KeyEvent.VK_N, 0), tr("Draw"));
     53
    4754                //putValue("help", "Action/AddNode/Autnode");
    4855        }
Note: See TracChangeset for help on using the changeset viewer.