Changeset 4979 in josm for trunk/src/org
- Timestamp:
- 2012-02-18T09:28:21+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r4975 r4979 305 305 @Deprecated public static final int SHIFT_DEFAULT = 1; 306 306 @Deprecated public static Shortcut registerShortcut(String shortText, String longText, int requestedKey, int requestedGroup, int modifier) { 307 return registerShortcut(shortText, longText, requestedKey, requestedGroup, modifier);307 return registerShortcut(shortText, longText, requestedKey, requestedGroup, new Integer(modifier)); 308 308 } 309 309 … … 407 407 } 408 408 409 /* NEW function: 410 private static int findModifier(int group, Integer modifier) { 411 if(modifier == null) { 412 modifier = getGroupModifier(group); 413 if (modifier == null) { // garbage in, no shortcut out 414 modifier = getGroupModifier(NONE); 415 } 416 } 417 return modifier; 418 }*/ 419 409 420 // shutdown handling 410 421 public static boolean savePrefs() { … … 451 462 */ 452 463 public static Shortcut registerShortcut(String shortText, String longText, int requestedKey, int requestedGroup) { 453 return registerShortcut(shortText, longText, requestedKey, requestedGroup );464 return registerShortcut(shortText, longText, requestedKey, requestedGroup, null); 454 465 } 455 466
Note:
See TracChangeset
for help on using the changeset viewer.