Changeset 1182 in josm for trunk/src/org/openstreetmap/josm/actions/JosmAction.java
- Timestamp:
- 2008-12-27T00:09:20+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r1180 r1182 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.actions; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.event.InputEvent; … … 29 31 public Shortcut getShortcut() { 30 32 if (sc == null) { 31 sc = Shortcut.registerShortcut("core:none", "No Shortcut", 0, Shortcut.GROUP_NONE); 32 sc.setAutomatic(); // as this shortcut is shared by all action that don't want to have a shortcut, 33 // we shouldn't allow the user to change it... 33 sc = Shortcut.registerShortcut("core:none", tr("No Shortcut"), 0, Shortcut.GROUP_NONE); 34 // as this shortcut is shared by all action that don't want to have a shortcut, 35 // we shouldn't allow the user to change it... 36 // this is handled by special name "core:none" 34 37 } 35 38 return sc;
Note:
See TracChangeset
for help on using the changeset viewer.