Changeset 12320 in josm


Ignore:
Timestamp:
2017-06-06T01:27:55+02:00 (6 months ago)
Author:
Don-vip
Message:

fix #11111 - don't register automatic shortcuts

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

Legend:

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

    r12051 r12320  
    7676        setHelpId();
    7777        sc = shortcut;
    78         if (sc != null) {
     78        if (sc != null && !sc.isAutomatic()) {
    7979            Main.registerActionShortcut(this, sc);
    8080        }
     
    215215    @Override
    216216    public void destroy() {
    217         if (sc != null) {
     217        if (sc != null && !sc.isAutomatic()) {
    218218            Main.unregisterActionShortcut(this);
    219219        }
  • trunk/src/org/openstreetmap/josm/tools/PlatformHook.java

    r12279 r12320  
    8080      * it or registered from within the application.
    8181      *
    82       * Plese note that you are not allowed to register any
     82      * Please note that you are not allowed to register any
    8383      * shortuts from this hook, but only "systemCuts"!
    8484      *
Note: See TracChangeset for help on using the changeset viewer.