Changeset 4922 in josm for trunk


Ignore:
Timestamp:
2012-02-12T18:54:57+01:00 (12 years ago)
Author:
stoecker
Message:

better shortcut parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r4842 r4922  
    150150
    151151        for(int i=0; i < 10; i++) {
    152             visibilityToggleShortcuts[i] = Shortcut.registerShortcut(
    153                     "subwindow:layers:toggleLayer" + (i+1),
    154                     tr("Toggle visibility of layer: {0}", (i+1)),
    155                     k[i],
    156                     Shortcut.GROUP_LAYER);
     152            visibilityToggleShortcuts[i] = Shortcut.registerShortcut("subwindow:layers:toggleLayer" + (i+1),
     153                    tr("Toggle visibility of layer: {0}", (i+1)), k[i], Shortcut.GROUP_LAYER);
    157154            visibilityToggleActions[i] = new ToggleLayerIndexVisibility(i);
    158155            Main.registerActionShortcut(visibilityToggleActions[i], visibilityToggleShortcuts[i]);
Note: See TracChangeset for help on using the changeset viewer.