- Timestamp:
- 2010-03-14T16:08:28+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r3083 r3135 460 460 ); 461 461 } 462 463 /** 464 * Replies the platform specific key stroke for the 'Copy' command, i.e. 465 * 'Ctrl-C' on windows or 'Meta-C' on a Mac. null, if the platform specific 466 * copy command isn't known. 467 * 468 * @return the platform specific key stroke for the 'Copy' command 469 */ 470 static public KeyStroke getCopyKeyStroke() { 471 Shortcut sc = shortcuts.get("system:copy"); 472 if (sc == null) return null; 473 return sc.getKeyStroke(); 474 } 475 476 /** 477 * Replies the platform specific key stroke for the 'Paste' command, i.e. 478 * 'Ctrl-V' on windows or 'Meta-V' on a Mac. null, if the platform specific 479 * paste command isn't known. 480 * 481 * @return the platform specific key stroke for the 'Paste' command 482 */ 483 static public KeyStroke getPasteKeyStroke() { 484 Shortcut sc = shortcuts.get("system:paste"); 485 if (sc == null) return null; 486 return sc.getKeyStroke(); 487 } 488 489 /** 490 * Replies the platform specific key stroke for the 'Cut' command, i.e. 491 * 'Ctrl-X' on windows or 'Meta-X' on a Mac. null, if the platform specific 492 * 'Cut' command isn't known. 493 * 494 * @return the platform specific key stroke for the 'Cut' command 495 */ 496 static public KeyStroke getCutKeyStroke() { 497 Shortcut sc = shortcuts.get("system:cut"); 498 if (sc == null) return null; 499 return sc.getKeyStroke(); 500 } 462 501 }
Note:
See TracChangeset
for help on using the changeset viewer.