Changeset 5278 in josm


Ignore:
Timestamp:
2012-06-11T00:17:12+02:00 (12 years ago)
Author:
simon04
Message:

fix #7617 - Properties/Memberships shortcuts fail after closing window

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r5262 r5278  
    422422    }
    423423
     424    public static void registerActionShortcut(JosmAction action) {
     425        registerActionShortcut(action, action.getShortcut());
     426    }
     427
    424428    public static void registerActionShortcut(Action action, Shortcut shortcut) {
    425429        KeyStroke keyStroke = shortcut.getKeyStroke();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r5271 r5278  
    211211        SelectionEventManager.getInstance().addSelectionListener(this, FireMode.IN_EDT_CONSOLIDATED);
    212212        MapView.addEditLayerChangeListener(this);
     213        Main.registerActionShortcut(addAction);
     214        Main.registerActionShortcut(editAction);
     215        Main.registerActionShortcut(deleteAction);
    213216        updateSelection();
    214217    }
Note: See TracChangeset for help on using the changeset viewer.