Ignore:
Timestamp:
15.05.2010 18:59:10 (2 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/ZoomOutAction.java

    r3083 r3252  
    88import java.awt.event.KeyEvent; 
    99 
    10 import javax.swing.JComponent; 
    1110import javax.swing.KeyStroke; 
    1211 
     
    2120        putValue("help", ht("/Action/ZoomOut")); 
    2221        // make numpad - behave like - 
    23         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT,0), tr("Zoom Out")); 
     22        Main.registerActionShortcut(this, KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT,0)); 
    2423    } 
    2524 
Note: See TracChangeset for help on using the changeset viewer.