Changeset 1084 in josm for trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
- Timestamp:
- 2008-11-18T19:53:53+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r1054 r1084 9 9 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.tools.Short Cut;11 import org.openstreetmap.josm.tools.Shortcut; 12 12 13 13 public class UnselectAllAction extends JosmAction { … … 15 15 public UnselectAllAction() { 16 16 super(tr("Unselect All"), "unselectall", tr("Unselect all objects."), 17 Short Cut.registerShortCut("edit:unselectall", tr("Edit: {0}", tr("Unselect All")), KeyEvent.VK_U, ShortCut.GROUP_EDIT), true);17 Shortcut.registerShortcut("edit:unselectall", tr("Edit: {0}", tr("Unselect All")), KeyEvent.VK_U, Shortcut.GROUP_EDIT), true); 18 18 // this is not really GROUP_EDIT, but users really would complain if the yhad to reconfigure because we put 19 19 // the correct group in … … 21 21 // Add extra shortcut C-S-a 22 22 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 23 Short Cut.registerShortCut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")),24 KeyEvent.VK_A, Short Cut.GROUP_MENU, ShortCut.SHIFT_DEFAULT).getKeyStroke(),23 Shortcut.registerShortcut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")), 24 KeyEvent.VK_A, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT).getKeyStroke(), 25 25 tr("Unselect All")); 26 26 … … 32 32 */ 33 33 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 34 Short Cut.registerShortCut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")),35 KeyEvent.VK_ESCAPE, Short Cut.GROUP_DIRECT).getKeyStroke(),34 Shortcut.registerShortcut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")), 35 KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT).getKeyStroke(), 36 36 tr("Unselect All")); 37 37 }
Note:
See TracChangeset
for help on using the changeset viewer.