Ignore:
Timestamp:
2011-11-21T22:16:25+01:00 (12 years ago)
Author:
jttt
Message:

Multikey action improvements (see #5515):

  • show text in status bar after shortcut is pressed
  • number layers from 1
  • do not allow Repeat for last layer if layer index conflicts with shortcut
File:
1 edited

Legend:

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

    r4595 r4604  
    2222
    2323        public char getShortcut() {
    24             if (index < 10)
    25                 return (char)('0' + index);
     24            if (index < 9)
     25                return (char)('1' + index);
     26            else if (index == 9)
     27                return '0';
    2628            else
    2729                return (char)('A' +  index - 10);
     
    3335    }
    3436
    35     void executeMultikeyAction(int index);
    36     void repeateLastMultikeyAction();
     37    void executeMultikeyAction(int index, boolean repeatLastAction);
    3738    List<MultikeyInfo> getMultikeyCombinations();
    3839    MultikeyInfo getLastMultikeyAction();
Note: See TracChangeset for help on using the changeset viewer.