- Timestamp:
- 2013-11-03T01:45:21+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r6084 r6363 11 11 import org.openstreetmap.josm.tools.Shortcut; 12 12 13 /** 14 * Zoom in map. 15 * @since 770 16 */ 13 17 public final class ZoomInAction extends JosmAction { 14 18 19 /** 20 * Constructs a new {@code ZoomInAction}. 21 */ 15 22 public ZoomInAction() { 16 23 super( … … 18 25 "dialogs/zoomin", 19 26 tr("Zoom In"), 27 // Although it might be possible on few custom keyboards, the vast majority of layouts do not have a direct '+' key, see below 20 28 Shortcut.registerShortcut("view:zoomin", tr("View: {0}", tr("Zoom In")),KeyEvent.VK_PLUS, Shortcut.DIRECT), 21 29 true 22 30 ); 23 31 putValue("help", ht("/Action/ZoomIn")); 32 // On standard QWERTY, AZERTY and other common layouts the '+' key is obtained with Shift+EQUALS 33 Main.registerActionShortcut(this, 34 Shortcut.registerShortcut("view:zoominbis", tr("View: {0}", tr("Zoom In")), 35 KeyEvent.VK_EQUALS, Shortcut.SHIFT)); 24 36 // make numpad + behave like + 25 37 Main.registerActionShortcut(this, -
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r6084 r6363 11 11 import org.openstreetmap.josm.tools.Shortcut; 12 12 13 /** 14 * Zoom out map. 15 * @since 770 16 */ 13 17 public final class ZoomOutAction extends JosmAction { 14 18 19 /** 20 * Constructs a new {@code ZoomOutAction}. 21 */ 15 22 public ZoomOutAction() { 16 23 super(tr("Zoom Out"), "dialogs/zoomout", tr("Zoom Out"),
Note:
See TracChangeset
for help on using the changeset viewer.