Changeset 4891 in josm for trunk


Ignore:
Timestamp:
2012-02-02T19:36:40+01:00 (13 years ago)
Author:
stoecker
Message:

add shortcut class usage

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

Legend:

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

    r4494 r4891  
    2525        putValue("help", ht("/Action/ZoomIn"));
    2626        // make numpad + behave like +
    27         Main.registerActionShortcut(this, KeyStroke.getKeyStroke(KeyEvent.VK_ADD, 0));
     27        Main.registerActionShortcut(this,
     28            Shortcut.registerShortcut("view:zoominkeypad", tr("View: {0}", tr("Zoom In (Keypad)")),
     29                KeyEvent.VK_ADD, Shortcut.GROUP_DIRECT));
    2830    }
    2931
  • trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java

    r4494 r4891  
    2020        putValue("help", ht("/Action/ZoomOut"));
    2121        // make numpad - behave like -
    22         Main.registerActionShortcut(this, KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT,0));
     22        Main.registerActionShortcut(this,
     23            Shortcut.registerShortcut("view:zoomoutkeypad", tr("View: {0}", tr("Zoom Out (Keypad)")),
     24                KeyEvent.VK_SUBTRACT, Shortcut.GROUP_DIRECT));
    2325    }
    2426
Note: See TracChangeset for help on using the changeset viewer.