- Timestamp:
- 2015-10-27T14:03:41+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r8928 r8952 434 434 private static Shortcut registerShortcut(String shortText, String longText, int requestedKey, int requestedGroup, Integer modifier) { 435 435 doInit(); 436 Integer defaultModifier = findModifier(requestedGroup, modifier);437 436 if (shortcuts.containsKey(shortText)) { // a re-register? maybe a sc already read from the preferences? 438 437 Shortcut sc = shortcuts.get(shortText); … … 441 440 return sc; 442 441 } 442 Integer defaultModifier = findModifier(requestedGroup, modifier); 443 443 Shortcut conflict = findShortcut(requestedKey, defaultModifier); 444 444 if (conflict != null) { … … 447 447 int newmodifier = findNewOsxModifier(requestedGroup); 448 448 if (findShortcut(requestedKey, newmodifier) == null) { 449 Main.info("Reassigning OSX shortcut '" + shortText + "' from Meta to Ctrl because of conflict with " + conflict); 449 450 return reassignShortcut(shortText, longText, requestedKey, conflict, requestedGroup, requestedKey, newmodifier); 450 451 } … … 454 455 int newmodifier = getGroupModifier(m); 455 456 if (findShortcut(k, newmodifier) == null) { 457 Main.info("Reassigning shortcut '" + shortText + "' from " + modifier + " to " + newmodifier + 458 " because of conflict with " + conflict); 456 459 return reassignShortcut(shortText, longText, requestedKey, conflict, m, k, newmodifier); 457 460 }
Note:
See TracChangeset
for help on using the changeset viewer.