Changeset 3227 in josm


Ignore:
Timestamp:
09.05.2010 16:34:37 (21 months 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.