Changeset 3252 in josm for trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
- Timestamp:
- 15.05.2010 18:59:10 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r2512 r3252 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 6 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 10 import javax.swing.JComponent;11 9 12 10 import org.openstreetmap.josm.Main; … … 22 20 23 21 // Add extra shortcut C-S-a 24 Main. contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(25 Shortcut.registerShortcut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")),26 KeyEvent.VK_A, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT).getKeyStroke(), 27 tr("Unselect All")); 22 Main.registerActionShortcut(this, Shortcut.registerShortcut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")), 23 KeyEvent.VK_A, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT)); 24 25 28 26 29 27 // Add extra shortcut ESCAPE … … 33 31 * for now this is a reasonable approximation. 34 32 */ 35 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 36 Shortcut.registerShortcut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")), 37 KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT).getKeyStroke(), 38 tr("Unselect All")); 33 Main.registerActionShortcut(this, Shortcut.registerShortcut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")), 34 KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT)); 39 35 40 36 putValue("help", ht("/Action/UnselectAll"));
Note: See TracChangeset
for help on using the changeset viewer.
