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/gui/dialogs/properties/PropertiesDialog.java

    r3219 r3252  
    610610        btnAdd.getActionMap().put("onEnter", addAction); 
    611611 
    612         Shortcut sc = Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B, 
    613                 Shortcut.GROUP_MNEMONIC); 
    614         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(sc.getKeyStroke(), "properties:add"); 
    615         Main.contentPane.getActionMap().put("properties:add", addAction); 
     612        Main.registerActionShortcut(addAction, Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B, 
     613                Shortcut.GROUP_MNEMONIC)); 
    616614 
    617615        // -- edit action 
Note: See TracChangeset for help on using the changeset viewer.