Ignore:
Timestamp:
2008-11-18T19:53:53+01:00 (16 years ago)
Author:
framm
Message:
  • cosmetics: rename ShortCut to Shortcut, and shortCut to shortcut
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java

    r1054 r1084  
    99
    1010import org.openstreetmap.josm.Main;
    11 import org.openstreetmap.josm.tools.ShortCut;
     11import org.openstreetmap.josm.tools.Shortcut;
    1212
    1313public class UnselectAllAction extends JosmAction {
     
    1515        public UnselectAllAction() {
    1616                super(tr("Unselect All"), "unselectall", tr("Unselect all objects."),
    17                 ShortCut.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);
    1818                // this is not really GROUP_EDIT, but users really would complain if the yhad to reconfigure because we put
    1919                // the correct group in
     
    2121                // Add extra shortcut C-S-a
    2222                Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
    23                 ShortCut.registerShortCut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")),
    24                 KeyEvent.VK_A, ShortCut.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(),
    2525                tr("Unselect All"));
    2626
     
    3232                 */
    3333                Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
    34                 ShortCut.registerShortCut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")),
    35                 KeyEvent.VK_ESCAPE, ShortCut.GROUP_DIRECT).getKeyStroke(),
     34                Shortcut.registerShortcut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")),
     35                KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT).getKeyStroke(),
    3636                tr("Unselect All"));
    3737        }
Note: See TracChangeset for help on using the changeset viewer.