Changeset 9262 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-02T16:45:54+01:00 (4 years ago)
Author:
stoecker
Message:

mark the possible shortcuts, so we have a chance to extract them without making a Java parser

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

Legend:

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

    r9260 r9262  
    148148        for (int i = 0; i < 10; i++) {
    149149            final int i1 = i + 1;
     150            /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */
    150151            visibilityToggleShortcuts[i] = Shortcut.registerShortcut("subwindow:layers:toggleLayer" + i1,
    151152                    tr("Toggle visibility of layer: {0}", i1), KeyEvent.VK_0 + (i1 % 10), Shortcut.ALT);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r9260 r9262  
    708708                final String actionShortcutKey = "properties:recent:" + count;
    709709                final String actionShortcutShiftKey = "properties:recent:shift:" + count;
     710                /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */
    710711                final Shortcut sc = count > 10 ? null : Shortcut.registerShortcut(
    711712                        actionShortcutKey, tr("Choose recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL);
     
    720721                    }
    721722                };
     723                /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */
    722724                final Shortcut scShift = count > 10 ? null : Shortcut.registerShortcut(
    723725                        actionShortcutShiftKey, tr("Apply recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL_SHIFT);
Note: See TracChangeset for help on using the changeset viewer.