Changeset 4943 in josm for trunk/src


Ignore:
Timestamp:
2012-02-15T22:08:55+01:00 (13 years ago)
Author:
stoecker
Message:

fix some shortcut deprecations

Location:
trunk/src/org/openstreetmap/josm
Files:
5 edited

Legend:

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

    r4387 r4943  
    3434        super(tr("Paste Tags"), "pastetags",
    3535                tr("Apply tags of contents of paste buffer to all selected items."),
    36                 Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), KeyEvent.VK_V, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), true);
     36                Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")),
     37                KeyEvent.VK_V, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), true);
    3738        Main.pasteBuffer.addPasteBufferChangedListener(this);
    3839        putValue("help", ht("/Action/PasteTags"));
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r4869 r4943  
    3535    public SimplifyWayAction() {
    3636        super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), Shortcut.registerShortcut("tools:simplify", tr("Tool: {0}", tr("Simplify Way")),
    37                 KeyEvent.VK_Y, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
     37                KeyEvent.VK_Y, Shortcut.GROUP_EDIT+Shortcut.GROUPS_ALT1), true);
    3838        putValue("help", ht("/Action/SimplifyWay"));
    3939    }
  • trunk/src/org/openstreetmap/josm/actions/ToggleGPXLinesAction.java

    r3083 r4943  
    1515    public ToggleGPXLinesAction() {
    1616        super(tr("Toggle GPX Lines"), "gps-lines", tr("Toggles the global setting ''{0}''.", tr("Draw lines between raw gps points.")),
    17         Shortcut.registerShortcut("view:gpxlines", tr("View: {0}", tr("Toggle GPX Lines")), KeyEvent.VK_X, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), true);
     17        Shortcut.registerShortcut("view:gpxlines", tr("View: {0}", tr("Toggle GPX Lines")), KeyEvent.VK_X, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), true);
    1818        putValue("help", ht("/Action/ToggleGPXLines"));
    1919    }
  • trunk/src/org/openstreetmap/josm/gui/MainApplet.java

    r4932 r4943  
    3939        public UploadPreferencesAction() {
    4040            super(tr("Upload Preferences"), "upload-preferences", tr("Upload the current preferences to the server"),
    41                     Shortcut.registerShortcut("applet:uploadprefs", tr("Upload Preferences"), KeyEvent.VK_U, Shortcut.GROUP_HOTKEY), true);
     41                    Shortcut.registerShortcut("applet:uploadprefs", tr("Upload Preferences"), KeyEvent.VK_U, Shortcut.GROUP_DIRECT3+Shortcut.GROUPS_ALT1), true);
    4242        }
    4343        public void actionPerformed(ActionEvent e) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r4926 r4943  
    16821682
    16831683        public PasteTagsAction() {
    1684             registerCopyPasteAction(this, "PASTE_TAGS", Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), KeyEvent.VK_V, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT).getKeyStroke());
     1684            registerCopyPasteAction(this, "PASTE_TAGS", Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), KeyEvent.VK_V, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1).getKeyStroke());
    16851685        }
    16861686
Note: See TracChangeset for help on using the changeset viewer.