Changeset 3244 in josm for trunk


Ignore:
Timestamp:
2010-05-15T09:50:57+02:00 (14 years ago)
Author:
jttt
Message:

Fix #5009: esc does not stop line drawing / deselect (by reverting r3227)

File:
1 edited

Legend:

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

    r3227 r3244  
    7272        sc = shortcut;
    7373        if (sc != null) {
    74             Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(sc.getKeyStroke(), this);
    75             Main.contentPane.getActionMap().put(this, this);
     74            Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(sc.getKeyStroke(), name);
     75            Main.contentPane.getActionMap().put(name, this);
    7676        }
    7777        putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc));
Note: See TracChangeset for help on using the changeset viewer.