Changeset 3227 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-05-09T16:34:37+02:00 (14 years ago)
Author:
jttt
Message:

Fix #2234 Translation can cause JosmActions to illegally handle shortcuts

File:
1 edited

Legend:

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

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