Changeset 4982 in josm for trunk/src/org
- Timestamp:
- 2012-02-18T12:53:53+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 97 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r4968 r4982 272 272 273 273 registerActionShortcut(menu.help, Shortcut.registerShortcut("system:help", tr("Help"), 274 KeyEvent.VK_F1, Shortcut. GROUP_DIRECT));274 KeyEvent.VK_F1, Shortcut.DIRECT)); 275 275 276 276 if (initListener != null) { -
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r4942 r4982 39 39 super(tr("About"), "about", tr("Display the about screen."), 40 40 Shortcut.registerShortcut("system:about", tr("About"), 41 KeyEvent.VK_F1, Shortcut. GROUP_DIRECT+Shortcut.GROUPS_ALT1), true);41 KeyEvent.VK_F1, Shortcut.SHIFT), true); 42 42 } 43 43 -
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r4942 r4982 27 27 super(tr("Add Node..."), "addnode", tr("Add a node by entering latitude / longitude or easting / northing."), 28 28 Shortcut.registerShortcut("addnode", tr("Edit: {0}", tr("Add Node...")), 29 KeyEvent.VK_D, Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);29 KeyEvent.VK_D, Shortcut.SHIFT), true); 30 30 putValue("help", ht("/Action/AddNode")); 31 31 } -
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r2323 r4982 37 37 super(tr("Align Nodes in Circle"), "aligncircle", tr("Move the selected nodes into a circle."), 38 38 Shortcut.registerShortcut("tools:aligncircle", tr("Tool: {0}", tr("Align Nodes in Circle")), 39 KeyEvent.VK_O, Shortcut. GROUP_EDIT), true);39 KeyEvent.VK_O, Shortcut.DIRECT), true); 40 40 putValue("help", ht("/Action/AlignInCircle")); 41 41 } -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r4632 r4982 33 33 public AlignInLineAction() { 34 34 super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes in to a line."), 35 Shortcut.registerShortcut("tools:alignline", tr("Tool: {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, Shortcut. GROUP_EDIT), true);35 Shortcut.registerShortcut("tools:alignline", tr("Tool: {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, Shortcut.DIRECT), true); 36 36 putValue("help", ht("/Action/AlignInLine")); 37 37 } -
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r4932 r4982 107 107 public AutoScaleAction(String mode) { 108 108 super(tr("Zoom to {0}", tr(mode)), "dialogs/autoscale/" + mode, tr("Zoom the view to {0}.", tr(mode)), 109 Shortcut.registerShortcut("view:zoom"+mode, tr("View: {0}", tr("Zoom to {0}", tr(mode))), getModeShortcut(mode), Shortcut. GROUP_EDIT), true);109 Shortcut.registerShortcut("view:zoom"+mode, tr("View: {0}", tr("Zoom to {0}", tr(mode))), getModeShortcut(mode), Shortcut.DIRECT), true); 110 110 String modeHelp = Character.toUpperCase(mode.charAt(0)) + mode.substring(1); 111 111 putValue("help", "Action/AutoScale/" + modeHelp); -
trunk/src/org/openstreetmap/josm/actions/ChangesetManagerToggleAction.java
r4851 r4982 35 35 Shortcut.registerShortcut("menu:windows:changesetdialog", 36 36 tr("Toggle visibility of Changeset Manager window"), 37 KeyEvent.VK_C, Shortcut. GROUPS_ALT2 + Shortcut.GROUP_HOTKEY),37 KeyEvent.VK_C, Shortcut.ALT_CTRL), 38 38 true /* register shortcut */ 39 39 ); -
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r4892 r4982 37 37 Shortcut.registerShortcut("system:closechangeset", 38 38 tr("File: {0}", tr("Closes open changesets")), 39 KeyEvent.VK_Q, Shortcut. GROUPS_ALT2+Shortcut.GROUP_HOTKEY),39 KeyEvent.VK_Q, Shortcut.ALT_CTRL), 40 40 true 41 41 ); -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r4892 r4982 53 53 public CombineWayAction() { 54 54 super(tr("Combine Way"), "combineway", tr("Combine several ways into one."), 55 Shortcut.registerShortcut("tools:combineway", tr("Tool: {0}", tr("Combine Way")), KeyEvent.VK_C, Shortcut. GROUP_EDIT), true);55 Shortcut.registerShortcut("tools:combineway", tr("Tool: {0}", tr("Combine Way")), KeyEvent.VK_C, Shortcut.DIRECT), true); 56 56 putValue("help", ht("/Action/CombineWay")); 57 57 } -
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r4380 r4982 23 23 super(tr("Copy"), "copy", 24 24 tr("Copy selected objects to paste buffer."), 25 Shortcut.registerShortcut("system:copy", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_C, Shortcut. GROUP_MENU), true);25 Shortcut.registerShortcut("system:copy", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_C, Shortcut.CTRL), true); 26 26 putValue("help", ht("/Action/Copy")); 27 27 } -
trunk/src/org/openstreetmap/josm/actions/CopyCoordinatesAction.java
r4958 r4982 18 18 tr("Copy coordinates of selected nodes to clipboard."), 19 19 Shortcut.registerShortcut("copy:coordinates", tr("Edit: {0}", tr("Copy Coordinates")), 20 KeyEvent.VK_C, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1),20 KeyEvent.VK_C, Shortcut.CTRL_SHIFT), 21 21 false); 22 22 putValue("toolbar", "copy/coordinates"); -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r4958 r4982 44 44 super(tr("Create Circle"), "createcircle", tr("Create a circle from three selected nodes."), 45 45 Shortcut.registerShortcut("tools:createcircle", tr("Tool: {0}", tr("Create Circle")), 46 KeyEvent.VK_O, Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);46 KeyEvent.VK_O, Shortcut.SHIFT), true); 47 47 putValue("help", ht("/Action/CreateCircle")); 48 48 } -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r4958 r4982 49 49 super(tr("Create multipolygon"), "multipoly_create", tr("Create multipolygon."), 50 50 Shortcut.registerShortcut("tools:multipoly", tr("Tool: {0}", tr("Create multipolygon")), 51 KeyEvent.VK_A, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT2), true);51 KeyEvent.VK_A, Shortcut.ALT_CTRL), true); 52 52 } 53 53 /** -
trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
r3835 r4982 17 17 public DeleteAction() { 18 18 super(tr("Delete"), "dialogs/delete", tr("Delete selected objects."), 19 Shortcut.registerShortcut("system:delete", tr("Edit: {0}", tr("Delete")), KeyEvent.VK_DELETE, Shortcut. GROUP_DIRECT), true);19 Shortcut.registerShortcut("system:delete", tr("Edit: {0}", tr("Delete")), KeyEvent.VK_DELETE, Shortcut.DIRECT), true); 20 20 putValue("help", ht("/Action/Delete")); 21 21 } -
trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
r4942 r4982 31 31 super(tr("Distribute Nodes"), "distribute", tr("Distribute the selected nodes to equal distances along a line."), 32 32 Shortcut.registerShortcut("tools:distribute", tr("Tool: {0}", tr("Distribute Nodes")), KeyEvent.VK_B, 33 Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);33 Shortcut.SHIFT), true); 34 34 putValue("help", ht("/Action/DistributeNodes")); 35 35 } -
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r4966 r4982 28 28 public DownloadAction() { 29 29 super(tr("Download from OSM..."), "download", tr("Download map data from the OSM server."), 30 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_DOWN, Shortcut. GROUP_HOTKEY+Shortcut.GROUPS_ALT1), true);30 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_DOWN, Shortcut.CTRL_SHIFT), true); 31 31 putValue("help", ht("/Action/Download")); 32 32 } -
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r4796 r4982 59 59 public DownloadPrimitiveAction() { 60 60 super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID."), 61 Shortcut.registerShortcut("system:download_primitive", tr("File: {0}", tr("Download object...")), KeyEvent.VK_O, Shortcut. GROUP_MENU + Shortcut.GROUPS_ALT1), true);61 Shortcut.registerShortcut("system:download_primitive", tr("File: {0}", tr("Download object...")), KeyEvent.VK_O, Shortcut.CTRL_SHIFT), true); 62 62 putValue("help", ht("/Action/DownloadObject")); 63 63 } -
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r4700 r4982 28 28 public DownloadReferrersAction() { 29 29 super(tr("Download parent ways/relations..."), "downloadreferrers", tr("Download objects referring to one of the selected objects"), 30 Shortcut.registerShortcut("file:downloadreferrers", tr("File: {0}", tr("Download parent ways/relations...")), KeyEvent.VK_D, Shortcut. GROUPS_ALT2+Shortcut.GROUP_HOTKEY), true);30 Shortcut.registerShortcut("file:downloadreferrers", tr("File: {0}", tr("Download parent ways/relations...")), KeyEvent.VK_D, Shortcut.ALT_CTRL), true); 31 31 putValue("help", ht("/Action/DownloadParentWaysAndRelation")); 32 32 } -
trunk/src/org/openstreetmap/josm/actions/DuplicateAction.java
r3969 r4982 20 20 super(tr("Duplicate"), "duplicate", 21 21 tr("Duplicate selection by copy and immediate paste."), 22 Shortcut.registerShortcut("system:duplicate", tr("Edit: {0}", tr("Duplicate")), KeyEvent.VK_D, Shortcut. GROUP_MENU), true);22 Shortcut.registerShortcut("system:duplicate", tr("Edit: {0}", tr("Duplicate")), KeyEvent.VK_D, Shortcut.CTRL), true); 23 23 putValue("help", ht("/Action/Duplicate")); 24 24 } -
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r3378 r4982 22 22 public ExitAction() { 23 23 super(tr("Exit"), "exit", tr("Exit the application."), 24 Shortcut.registerShortcut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, Shortcut. GROUP_MENU), true);24 Shortcut.registerShortcut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, Shortcut.CTRL), true); 25 25 putValue("help", ht("/Action/Exit")); 26 26 } -
trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java
r4671 r4982 40 40 Shortcut.registerShortcut("tools:followline", tr( 41 41 "Tool: {0}", tr("Follow")), 42 KeyEvent.VK_F, Shortcut. GROUP_EDIT), true);42 KeyEvent.VK_F, Shortcut.DIRECT), true); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java
r4203 r4982 36 36 null, /* no icon */ 37 37 tr("Toggle fullscreen view"), 38 Shortcut.registerShortcut("menu:view:fullscreen", tr("Toggle fullscreen view"),KeyEvent.VK_F11, Shortcut. GROUP_DIRECT),38 Shortcut.registerShortcut("menu:view:fullscreen", tr("Toggle fullscreen view"),KeyEvent.VK_F11, Shortcut.DIRECT), 39 39 false /* register */ 40 40 ); -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r3570 r4982 29 29 public GpxExportAction() { 30 30 super(tr("Export to GPX..."), "exportgpx", tr("Export the data to GPX file."), 31 Shortcut.registerShortcut("file:exportgpx", tr("Export to GPX..."), KeyEvent.VK_E, Shortcut. GROUP_MENU));31 Shortcut.registerShortcut("file:exportgpx", tr("Export to GPX..."), KeyEvent.VK_E, Shortcut.CTRL)); 32 32 putValue("help", ht("/Action/GpxExport")); 33 33 } -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r4408 r4982 21 21 tr("Display history information about OSM ways, nodes, or relations."), 22 22 Shortcut.registerShortcut("core:historyinfo", 23 tr("History"), KeyEvent.VK_H, Shortcut. GROUP_HOTKEY), false);23 tr("History"), KeyEvent.VK_H, Shortcut.CTRL), false); 24 24 putValue("help", ht("/Action/ObjectHistory")); 25 25 putValue("toolbar", "action/historyinfo"); -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoWebAction.java
r4942 r4982 18 18 tr("Display history information about OSM ways, nodes, or relations in web browser."), 19 19 Shortcut.registerShortcut("core:historyinfoweb", 20 tr("History (web)"), KeyEvent.VK_H, Shortcut. GROUP_DIRECT3),20 tr("History (web)"), KeyEvent.VK_H, Shortcut.CTRL_SHIFT), 21 21 true, "action/historyinfoweb", true); 22 22 putValue("help", ht("/Action/ObjectHistoryWeb")); -
trunk/src/org/openstreetmap/josm/actions/InfoAction.java
r4942 r4982 21 21 tr("Display advanced object information about OSM nodes, ways, or relations."), 22 22 Shortcut.registerShortcut("core:info", 23 tr("Advanced info"), KeyEvent.VK_I, Shortcut. GROUP_HOTKEY),23 tr("Advanced info"), KeyEvent.VK_I, Shortcut.CTRL), 24 24 true, "action/info", true); 25 25 putValue("help", ht("/Action/InfoAboutElements")); -
trunk/src/org/openstreetmap/josm/actions/InfoWebAction.java
r4942 r4982 18 18 tr("Display object information about OSM nodes, ways, or relations in web browser."), 19 19 Shortcut.registerShortcut("core:infoweb", 20 tr("Advanced info (web)"), KeyEvent.VK_I, Shortcut. GROUP_HOTKEY+Shortcut.GROUPS_ALT1),20 tr("Advanced info (web)"), KeyEvent.VK_I, Shortcut.CTRL_SHIFT), 21 21 true, "action/infoweb", true); 22 22 putValue("help", ht("/Action/InfoAboutElementsWeb")); -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r4958 r4982 308 308 super(tr("Join overlapping Areas"), "joinareas", tr("Joins areas that overlap each other"), 309 309 Shortcut.registerShortcut("tools:joinareas", tr("Tool: {0}", tr("Join overlapping Areas")), 310 KeyEvent.VK_J, Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);310 KeyEvent.VK_J, Shortcut.SHIFT), true); 311 311 } 312 312 -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r4788 r4982 29 29 public JoinNodeWayAction() { 30 30 super(tr("Join Node to Way"), "joinnodeway", tr("Include a node into the nearest way segments"), 31 Shortcut.registerShortcut("tools:joinnodeway", tr("Tool: {0}", tr("Join Node to Way")), KeyEvent.VK_J, Shortcut. GROUP_EDIT), true);31 Shortcut.registerShortcut("tools:joinnodeway", tr("Tool: {0}", tr("Join Node to Way")), KeyEvent.VK_J, Shortcut.DIRECT), true); 32 32 putValue("help", ht("/Action/JoinNodeWay")); 33 33 } -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r4908 r4982 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.event.KeyEvent; 6 7 import java.util.Collection; 7 8 … … 42 43 public Shortcut getShortcut() { 43 44 if (sc == null) { 44 sc = Shortcut.registerShortcut("core:none", tr("No Shortcut"), 0, Shortcut.GROUP_NONE);45 sc = Shortcut.registerShortcut("core:none", tr("No Shortcut"), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE); 45 46 // as this shortcut is shared by all action that don't want to have a shortcut, 46 47 // we shouldn't allow the user to change it... -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r4960 r4982 30 30 public JumpToAction() { 31 31 super(tr("Jump To Position"), null, tr("Opens a dialog that allows to jump to a specific location"), Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump To Position")), 32 KeyEvent.VK_J, Shortcut. GROUP_HOTKEY), false);32 KeyEvent.VK_J, Shortcut.CTRL), false); 33 33 putValue("toolbar", "action/jumpto"); 34 34 Main.toolbar.register(this); -
trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
r4851 r4982 20 20 tr("Merge the current layer into another layer"), 21 21 Shortcut.registerShortcut("system:merge", tr("Edit: {0}", 22 tr("Merge")), KeyEvent.VK_M, Shortcut. GROUP_MENU),22 tr("Merge")), KeyEvent.VK_M, Shortcut.CTRL), 23 23 true, "action/mergelayer", true); 24 24 putValue("help", ht("/Action/MergeLayer")); -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r4315 r4982 53 53 public MergeNodesAction() { 54 54 super(tr("Merge Nodes"), "mergenodes", tr("Merge nodes into the oldest one."), 55 Shortcut.registerShortcut("tools:mergenodes", tr("Tool: {0}", tr("Merge Nodes")), KeyEvent.VK_M, Shortcut. GROUP_EDIT), true);55 Shortcut.registerShortcut("tools:mergenodes", tr("Tool: {0}", tr("Merge Nodes")), KeyEvent.VK_M, Shortcut.DIRECT), true); 56 56 putValue("help", ht("/Action/MergeNodes")); 57 57 } -
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r4957 r4982 22 22 super(tr("Merge selection"), "dialogs/mergedown", tr("Merge the currently selected objects into another layer"), 23 23 Shortcut.registerShortcut("system:mergeselection", tr("Edit: {0}", tr("Merge selection")), 24 KeyEvent.VK_M, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1),24 KeyEvent.VK_M, Shortcut.CTRL_SHIFT), 25 25 true /* register */ 26 26 ); -
trunk/src/org/openstreetmap/josm/actions/MirrorAction.java
r4942 r4982 34 34 super(tr("Mirror"), "mirror", tr("Mirror selected nodes and ways."), 35 35 Shortcut.registerShortcut("tools:mirror", tr("Tool: {0}", tr("Mirror")), 36 KeyEvent.VK_M, Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);36 KeyEvent.VK_M, Shortcut.SHIFT), true); 37 37 putValue("help", ht("/Action/Mirror")); 38 38 } -
trunk/src/org/openstreetmap/josm/actions/MoveAction.java
r4139 r4982 50 50 Shortcut sc; 51 51 if (dir == Direction.UP) { 52 sc = Shortcut.registerShortcut("core:moveup", tr("Move objects {0}", tr("up")), KeyEvent.VK_UP, Shortcut. GROUPS_ALT1+Shortcut.GROUP_DIRECT);52 sc = Shortcut.registerShortcut("core:moveup", tr("Move objects {0}", tr("up")), KeyEvent.VK_UP, Shortcut.SHIFT); 53 53 } else if (dir == Direction.DOWN) { 54 sc = Shortcut.registerShortcut("core:movedown", tr("Move objects {0}", tr("down")), KeyEvent.VK_DOWN, Shortcut. GROUPS_ALT1+Shortcut.GROUP_DIRECT);54 sc = Shortcut.registerShortcut("core:movedown", tr("Move objects {0}", tr("down")), KeyEvent.VK_DOWN, Shortcut.SHIFT); 55 55 } else if (dir == Direction.LEFT) { 56 sc = Shortcut.registerShortcut("core:moveleft", tr("Move objects {0}", tr("left")), KeyEvent.VK_LEFT, Shortcut. GROUPS_ALT1+Shortcut.GROUP_DIRECT);56 sc = Shortcut.registerShortcut("core:moveleft", tr("Move objects {0}", tr("left")), KeyEvent.VK_LEFT, Shortcut.SHIFT); 57 57 } else { //dir == Direction.RIGHT) { 58 sc = Shortcut.registerShortcut("core:moveright", tr("Move objects {0}", tr("right")), KeyEvent.VK_RIGHT, Shortcut. GROUPS_ALT1+Shortcut.GROUP_DIRECT);58 sc = Shortcut.registerShortcut("core:moveright", tr("Move objects {0}", tr("right")), KeyEvent.VK_RIGHT, Shortcut.SHIFT); 59 59 } 60 60 return sc; -
trunk/src/org/openstreetmap/josm/actions/NewAction.java
r3753 r4982 17 17 public NewAction() { 18 18 super(tr("New Layer"), "new", tr("Create a new map layer."), 19 Shortcut.registerShortcut("system:new", tr("File: {0}", tr("New Layer")), KeyEvent.VK_N, Shortcut. GROUP_MENU), true);19 Shortcut.registerShortcut("system:new", tr("File: {0}", tr("New Layer")), KeyEvent.VK_N, Shortcut.CTRL), true); 20 20 putValue("help", ht("/Action/NewLayer")); 21 21 } -
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r4404 r4982 49 49 public OpenFileAction() { 50 50 super(tr("Open..."), "open", tr("Open a file."), 51 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut. GROUP_MENU));51 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.CTRL)); 52 52 putValue("help", ht("/Action/Open")); 53 53 -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r4530 r4982 47 47 /* I18N: Command to download a specific location/URL */ 48 48 super(tr("Open Location..."), "openlocation", tr("Open an URL."), 49 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), KeyEvent.VK_L, Shortcut. GROUP_MENU), true);49 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), KeyEvent.VK_L, Shortcut.CTRL), true); 50 50 putValue("help", ht("/Action/OpenLocation")); 51 51 this.downloadTasks = new ArrayList<Class<? extends DownloadTask>>(); -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r4942 r4982 51 51 Shortcut.registerShortcut("tools:orthogonalize", tr("Tool: {0}", tr("Orthogonalize Shape")), 52 52 KeyEvent.VK_Q, 53 Shortcut. GROUP_EDIT), true);53 Shortcut.DIRECT), true); 54 54 putValue("help", ht("/Action/OrthogonalizeShape")); 55 55 } … … 83 83 Shortcut.registerShortcut("tools:orthogonalizeUndo", tr("Tool: {0}", tr("Orthogonalize Shape / Undo")), 84 84 KeyEvent.VK_Q, 85 Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1),85 Shortcut.SHIFT), 86 86 true, "action/orthogonalize/undo", true); 87 87 } -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r3995 r4982 32 32 public PasteAction() { 33 33 super(tr("Paste"), "paste", tr("Paste contents of paste buffer."), 34 Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut. GROUP_MENU), true);34 Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true); 35 35 putValue("help", ht("/Action/Paste")); 36 36 Main.pasteBuffer.addPasteBufferChangedListener(this); -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r4943 r4982 35 35 tr("Apply tags of contents of paste buffer to all selected items."), 36 36 Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), 37 KeyEvent.VK_V, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1), true);37 KeyEvent.VK_V, Shortcut.CTRL_SHIFT), true); 38 38 Main.pasteBuffer.addPasteBufferChangedListener(this); 39 39 putValue("help", ht("/Action/PasteTags")); -
trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java
r2748 r4982 24 24 public PreferencesAction() { 25 25 super(tr("Preferences..."), "preference", tr("Open a preferences dialog for global settings."), 26 Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut. GROUP_DIRECT), true);26 Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut.DIRECT), true); 27 27 putValue("help", ht("/Action/Preferences")); 28 28 } -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r4958 r4982 61 61 super(tr("Purge..."), "purge", tr("Forget objects but do not delete them on server when uploading."), 62 62 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), 63 KeyEvent.VK_P, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1),63 KeyEvent.VK_P, Shortcut.CTRL_SHIFT), 64 64 true); 65 65 putValue("help", HelpUtil.ht("/Action/Purge")); -
trunk/src/org/openstreetmap/josm/actions/RedoAction.java
r4918 r4982 24 24 public RedoAction() { 25 25 super(tr("Redo"), "redo", tr("Redo the last undone action."), 26 Shortcut.registerShortcut("system:redo", tr("Edit: {0}", tr("Redo")), KeyEvent.VK_Y, Shortcut. GROUP_MENU), true);26 Shortcut.registerShortcut("system:redo", tr("Edit: {0}", tr("Redo")), KeyEvent.VK_Y, Shortcut.CTRL), true); 27 27 setEnabled(false); 28 28 putValue("help", ht("/Action/Redo")); -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r3504 r4982 66 66 public ReverseWayAction() { 67 67 super(tr("Reverse Ways"), "wayflip", tr("Reverse the direction of all selected ways."), 68 Shortcut.registerShortcut("tools:reverse", tr("Tool: {0}", tr("Reverse Ways")), KeyEvent.VK_R, Shortcut. GROUP_EDIT), true);68 Shortcut.registerShortcut("tools:reverse", tr("Tool: {0}", tr("Reverse Ways")), KeyEvent.VK_R, Shortcut.DIRECT), true); 69 69 putValue("help", ht("/Action/ReverseWays")); 70 70 } -
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r4114 r4982 27 27 public SaveAction() { 28 28 super(tr("Save"), "save", tr("Save the current data."), 29 Shortcut.registerShortcut("system:save", tr("File: {0}", tr("Save")), KeyEvent.VK_S, Shortcut. GROUP_MENU));29 Shortcut.registerShortcut("system:save", tr("File: {0}", tr("Save")), KeyEvent.VK_S, Shortcut.CTRL)); 30 30 putValue("help", ht("/Action/Save")); 31 31 } -
trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
r4958 r4982 25 25 super(tr("Save As..."), "save_as", tr("Save the current data to a new file."), 26 26 Shortcut.registerShortcut("system:saveas", tr("File: {0}", tr("Save As...")), 27 KeyEvent.VK_S, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1));27 KeyEvent.VK_S, Shortcut.CTRL_SHIFT)); 28 28 putValue("help", ht("/Action/SaveAs")); 29 29 } -
trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
r2512 r4982 14 14 public SelectAllAction() { 15 15 super(tr("Select All"),"selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."), 16 Shortcut.registerShortcut("system:selectall", tr("Edit: {0}", tr("Select All")), KeyEvent.VK_A, Shortcut. GROUP_MENU), true);16 Shortcut.registerShortcut("system:selectall", tr("Edit: {0}", tr("Select All")), KeyEvent.VK_A, Shortcut.CTRL), true); 17 17 putValue("help", ht("/Action/SelectAll")); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r4943 r4982 35 35 public SimplifyWayAction() { 36 36 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.GROUPS_ALT1), true);37 KeyEvent.VK_Y, Shortcut.SHIFT), true); 38 38 putValue("help", ht("/Action/SimplifyWay")); 39 39 } -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r4254 r4982 80 80 public SplitWayAction() { 81 81 super(tr("Split Way"), "splitway", tr("Split a way at the selected node."), 82 Shortcut.registerShortcut("tools:splitway", tr("Tool: {0}", tr("Split Way")), KeyEvent.VK_P, Shortcut. GROUP_EDIT), true);82 Shortcut.registerShortcut("tools:splitway", tr("Tool: {0}", tr("Split Way")), KeyEvent.VK_P, Shortcut.DIRECT), true); 83 83 putValue("help", ht("/Action/SplitWay")); 84 84 } -
trunk/src/org/openstreetmap/josm/actions/ToggleGPXLinesAction.java
r4962 r4982 15 15 public ToggleGPXLinesAction() { 16 16 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_DIRECT+Shortcut.GROUPS_ALT1), true);17 Shortcut.registerShortcut("view:gpxlines", tr("View: {0}", tr("Toggle GPX Lines")), KeyEvent.VK_X, Shortcut.SHIFT), true); 18 18 putValue("help", ht("/Action/ToggleGPXLines")); 19 19 } -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r4650 r4982 53 53 public UnGlueAction() { 54 54 super(tr("UnGlue Ways"), "unglueways", tr("Duplicate nodes that are used by multiple ways."), 55 Shortcut.registerShortcut("tools:unglue", tr("Tool: {0}", tr("UnGlue Ways")), KeyEvent.VK_G, Shortcut. GROUP_EDIT), true);55 Shortcut.registerShortcut("tools:unglue", tr("Tool: {0}", tr("UnGlue Ways")), KeyEvent.VK_G, Shortcut.DIRECT), true); 56 56 putValue("help", ht("/Action/UnGlue")); 57 57 } -
trunk/src/org/openstreetmap/josm/actions/UndoAction.java
r4918 r4982 24 24 public UndoAction() { 25 25 super(tr("Undo"), "undo", tr("Undo the last action."), 26 Shortcut.registerShortcut("system:undo", tr("Edit: {0}", tr("Undo")), KeyEvent.VK_Z, Shortcut. GROUP_MENU), true);26 Shortcut.registerShortcut("system:undo", tr("Edit: {0}", tr("Undo")), KeyEvent.VK_Z, Shortcut.CTRL), true); 27 27 setEnabled(false); 28 28 putValue("help", ht("/Action/Undo")); -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r4958 r4982 16 16 super(tr("Unselect All"), "unselectall", tr("Unselect all objects."), 17 17 Shortcut.registerShortcut("edit:unselectall", tr("Edit: {0}", 18 tr("Unselect All")), KeyEvent.VK_ESCAPE, Shortcut. GROUP_DIRECT), true);18 tr("Unselect All")), KeyEvent.VK_ESCAPE, Shortcut.DIRECT), true); 19 19 20 20 putValue("help", ht("/Action/UnselectAll")); -
trunk/src/org/openstreetmap/josm/actions/UpdateDataAction.java
r4927 r4982 26 26 Shortcut.registerShortcut("file:updatedata", 27 27 tr("File: {0}", tr("Update data")), 28 KeyEvent.VK_U, Shortcut. GROUP_HOTKEY),28 KeyEvent.VK_U, Shortcut.CTRL), 29 29 true); 30 30 putValue("help", ht("/Action/UpdateData")); -
trunk/src/org/openstreetmap/josm/actions/UpdateModifiedAction.java
r4927 r4982 27 27 Shortcut.registerShortcut("file:updatemodified", 28 28 tr("File: {0}", tr("Update modified")), KeyEvent.VK_M, 29 Shortcut. GROUPS_ALT2+Shortcut.GROUP_HOTKEY),29 Shortcut.ALT_CTRL), 30 30 true); 31 31 putValue("help", ht("/Action/UpdateModified")); -
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r4927 r4982 88 88 Shortcut.registerShortcut("file:updateselection", 89 89 tr("File: {0}", tr("Update selection")), KeyEvent.VK_U, 90 Shortcut. GROUPS_ALT2+Shortcut.GROUP_HOTKEY),90 Shortcut.ALT_CTRL), 91 91 true); 92 92 putValue("help", ht("/Action/UpdateSelection")); -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r4967 r4982 87 87 public UploadAction() { 88 88 super(tr("Upload data"), "upload", tr("Upload all changes in the active data layer to the OSM server"), 89 Shortcut.registerShortcut("file:upload", tr("File: {0}", tr("Upload data")), KeyEvent.VK_UP, Shortcut. GROUP_HOTKEY+Shortcut.GROUPS_ALT1), true);89 Shortcut.registerShortcut("file:upload", tr("File: {0}", tr("Upload data")), KeyEvent.VK_UP, Shortcut.CTRL_SHIFT), true); 90 90 putValue("help", ht("/Action/Upload")); 91 91 } -
trunk/src/org/openstreetmap/josm/actions/ValidateAction.java
r4957 r4982 47 47 super(tr("Validation"), "dialogs/validator", tr("Performs the data validation"), 48 48 Shortcut.registerShortcut("tools:validate", tr("Tool: {0}", tr("Validation")), 49 KeyEvent.VK_V, Shortcut. GROUP_EDIT+Shortcut.GROUPS_ALT1), true);49 KeyEvent.VK_V, Shortcut.SHIFT), true); 50 50 } 51 51 -
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r4958 r4982 24 24 tr("Enable/disable automatic moving of the map view to last placed node"), 25 25 Shortcut.registerShortcut("menu:view:viewportfollow", tr("Toggle Viewport Following"), 26 KeyEvent.VK_F, Shortcut. GROUP_MENU+Shortcut.GROUPS_ALT1),26 KeyEvent.VK_F, Shortcut.CTRL_SHIFT), 27 27 true /* register shortcut */ 28 28 ); -
trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java
r4177 r4982 27 27 null, /* no icon */ 28 28 tr("Enable/disable rendering the map as wireframe only"), 29 Shortcut.registerShortcut("menu:view:wireframe", tr("Toggle Wireframe view"),KeyEvent.VK_W, Shortcut. GROUP_MENU),29 Shortcut.registerShortcut("menu:view:wireframe", tr("Toggle Wireframe view"),KeyEvent.VK_W, Shortcut.CTRL), 30 30 false /* register toolbar */ 31 31 ); -
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r4891 r4982 20 20 "dialogs/zoomin", 21 21 tr("Zoom In"), 22 Shortcut.registerShortcut("view:zoomin", tr("View: {0}", tr("Zoom In")),KeyEvent.VK_PLUS, Shortcut. GROUP_DIRECT),22 Shortcut.registerShortcut("view:zoomin", tr("View: {0}", tr("Zoom In")),KeyEvent.VK_PLUS, Shortcut.DIRECT), 23 23 true 24 24 ); … … 27 27 Main.registerActionShortcut(this, 28 28 Shortcut.registerShortcut("view:zoominkeypad", tr("View: {0}", tr("Zoom In (Keypad)")), 29 KeyEvent.VK_ADD, Shortcut. GROUP_DIRECT));29 KeyEvent.VK_ADD, Shortcut.DIRECT)); 30 30 } 31 31 -
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r4891 r4982 17 17 public ZoomOutAction() { 18 18 super(tr("Zoom Out"), "dialogs/zoomout", tr("Zoom Out"), 19 Shortcut.registerShortcut("view:zoomout", tr("View: {0}", tr("Zoom Out")), KeyEvent.VK_MINUS, Shortcut. GROUP_DIRECT), true);19 Shortcut.registerShortcut("view:zoomout", tr("View: {0}", tr("Zoom Out")), KeyEvent.VK_MINUS, Shortcut.DIRECT), true); 20 20 putValue("help", ht("/Action/ZoomOut")); 21 21 // make numpad - behave like - 22 22 Main.registerActionShortcut(this, 23 23 Shortcut.registerShortcut("view:zoomoutkeypad", tr("View: {0}", tr("Zoom Out (Keypad)")), 24 KeyEvent.VK_SUBTRACT, Shortcut. GROUP_DIRECT));24 KeyEvent.VK_SUBTRACT, Shortcut.DIRECT)); 25 25 } 26 26 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java
r3754 r4982 19 19 public AudioBackAction() { 20 20 super(trc("audio", "Back"), "audio-back", trc("audio", "Jump back."), 21 Shortcut.registerShortcut("audio:back", tr("Audio: {0}", trc("audio", "Back")), KeyEvent.VK_F6, Shortcut. GROUP_DIRECT), true);21 Shortcut.registerShortcut("audio:back", tr("Audio: {0}", trc("audio", "Back")), KeyEvent.VK_F6, Shortcut.DIRECT), true); 22 22 this.putValue("help", ht("/Action/AudioBack")); 23 23 } -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java
r3754 r4982 14 14 public AudioFasterAction() { 15 15 super(trc("audio", "Faster"), "audio-faster", trc("audio", "Faster Forward"), 16 Shortcut.registerShortcut("audio:faster", tr("Audio: {0}", trc("audio", "Faster")), KeyEvent.VK_F9, Shortcut. GROUP_DIRECT), true);16 Shortcut.registerShortcut("audio:faster", tr("Audio: {0}", trc("audio", "Faster")), KeyEvent.VK_F9, Shortcut.DIRECT), true); 17 17 this.putValue("help", ht("/Action/AudioFaster")); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java
r2857 r4982 17 17 public AudioFwdAction() { 18 18 super(trc("audio", "Forward"), "audio-fwd", trc("audio", "Jump forward"), 19 Shortcut.registerShortcut("audio:forward", tr("Audio: {0}", trc("audio", "Forward")), KeyEvent.VK_F7, Shortcut. GROUP_DIRECT), true);19 Shortcut.registerShortcut("audio:forward", tr("Audio: {0}", trc("audio", "Forward")), KeyEvent.VK_F7, Shortcut.DIRECT), true); 20 20 } 21 21 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java
r2857 r4982 16 16 public AudioNextAction() { 17 17 super(trc("audio", "Next Marker"), "audio-next", trc("audio", "Play next marker."), 18 Shortcut.registerShortcut("audio:next", tr("Audio: {0}", trc("audio", "Next Marker")), KeyEvent.VK_F8, Shortcut. GROUP_DIRECT), true);18 Shortcut.registerShortcut("audio:next", tr("Audio: {0}", trc("audio", "Next Marker")), KeyEvent.VK_F8, Shortcut.DIRECT), true); 19 19 } 20 20 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java
r2857 r4982 17 17 public AudioPlayPauseAction() { 18 18 super(trc("audio", "Play/Pause"), "audio-playpause", tr("Play/pause audio."), 19 Shortcut.registerShortcut("audio:pause", tr("Audio: {0}", trc("audio", "Play/Pause")), KeyEvent.VK_PERIOD, Shortcut. GROUP_DIRECT), true);19 Shortcut.registerShortcut("audio:pause", tr("Audio: {0}", trc("audio", "Play/Pause")), KeyEvent.VK_PERIOD, Shortcut.DIRECT), true); 20 20 } 21 21 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java
r2857 r4982 16 16 public AudioPrevAction() { 17 17 super(trc("audio", "Previous Marker"), "audio-prev", trc("audio", "Play previous marker."), 18 Shortcut.registerShortcut("audio:prev", tr("Audio: {0}", trc("audio", "Previous Marker")), KeyEvent.VK_F5, Shortcut. GROUP_DIRECT), true);18 Shortcut.registerShortcut("audio:prev", tr("Audio: {0}", trc("audio", "Previous Marker")), KeyEvent.VK_F5, Shortcut.DIRECT), true); 19 19 } 20 20 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java
r3754 r4982 14 14 public AudioSlowerAction() { 15 15 super(trc("audio", "Slower"), "audio-slower", trc("audio", "Slower Forward"), 16 Shortcut.registerShortcut("audio:slower", tr("Audio: {0}", trc("audio", "Slower")), KeyEvent.VK_F4, Shortcut. GROUP_DIRECT), true);16 Shortcut.registerShortcut("audio:slower", tr("Audio: {0}", trc("audio", "Slower")), KeyEvent.VK_F4, Shortcut.DIRECT), true); 17 17 this.putValue("help", ht("/Action/AudioSlower")); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r4957 r4982 96 96 tr("Delete nodes or ways."), 97 97 Shortcut.registerShortcut("mapmode:delete", tr("Mode: {0}",tr("Delete")), 98 KeyEvent.VK_DELETE, Shortcut. GROUP_DIRECT+Shortcut.GROUPS_ALT2),98 KeyEvent.VK_DELETE, Shortcut.CTRL), 99 99 mapFrame, 100 100 ImageProvider.getCursor("normal", "delete")); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r4956 r4982 106 106 public DrawAction(MapFrame mapFrame) { 107 107 super(tr("Draw"), "node/autonode", tr("Draw nodes"), 108 Shortcut.registerShortcut("mapmode:draw", tr("Mode: {0}", tr("Draw")), KeyEvent.VK_A, Shortcut. GROUP_EDIT),108 Shortcut.registerShortcut("mapmode:draw", tr("Mode: {0}", tr("Draw")), KeyEvent.VK_A, Shortcut.DIRECT), 109 109 mapFrame, ImageProvider.getCursor("crosshair", null)); 110 110 111 111 snappingShortcut = Shortcut.registerShortcut("mapmode:drawanglesnapping", 112 tr("Mode: Draw Angle snapping"), KeyEvent.VK_TAB, Shortcut. GROUP_EDIT);112 tr("Mode: Draw Angle snapping"), KeyEvent.VK_TAB, Shortcut.DIRECT); 113 113 addMenuItem(); 114 114 snapHelper.setMenuCheckBox(snapCheckboxMenuItem); … … 174 174 Main.map.statusLine.getAnglePanel().addMouseListener(snapHelper.anglePopupListener); 175 175 backspaceShortcut = Shortcut.registerShortcut("mapmode:backspace", 176 tr("Backspace in Add mode"), KeyEvent.VK_BACK_SPACE, Shortcut. GROUP_EDIT);176 tr("Backspace in Add mode"), KeyEvent.VK_BACK_SPACE, Shortcut.DIRECT); 177 177 Main.registerActionShortcut(new BackSpaceAction(), backspaceShortcut); 178 178 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r4620 r4982 127 127 public ExtrudeAction(MapFrame mapFrame) { 128 128 super(tr("Extrude"), "extrude/extrude", tr("Create areas"), 129 Shortcut.registerShortcut("mapmode:extrude", tr("Mode: {0}", tr("Extrude")), KeyEvent.VK_X, Shortcut. GROUP_EDIT),129 Shortcut.registerShortcut("mapmode:extrude", tr("Mode: {0}", tr("Extrude")), KeyEvent.VK_X, Shortcut.DIRECT), 130 130 mapFrame, 131 131 ImageProvider.getCursor("normal", "rectangle")); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r4855 r4982 101 101 Shortcut.registerShortcut("mapmode:ImproveWayAccuracy", 102 102 tr("Mode: {0}", tr("Improve Way Accuracy")), 103 KeyEvent.VK_W, Shortcut. GROUP_EDIT), mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));103 KeyEvent.VK_W, Shortcut.DIRECT), mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); 104 104 105 105 cursorSelect = ImageProvider.getCursor("normal", "mode"); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r4956 r4982 126 126 super(tr("Parallel"), "parallel", tr("Make parallel copies of ways"), 127 127 Shortcut.registerShortcut("mapmode:parallel", tr("Mode: {0}", 128 tr("Parallel")), KeyEvent.VK_P, Shortcut.GROUP_EDIT+ 129 Shortcut.GROUPS_ALT1), mapFrame, ImageProvider.getCursor("normal", 130 "parallel")); 128 tr("Parallel")), KeyEvent.VK_P, Shortcut.SHIFT), 129 mapFrame, ImageProvider.getCursor("normal", "parallel")); 131 130 putValue("help", ht("/Action/Parallel")); 132 131 mv = mapFrame.mapView; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r4934 r4982 157 157 public SelectAction(MapFrame mapFrame) { 158 158 super(tr("Select"), "move/move", tr("Select, move, scale and rotate objects"), 159 Shortcut.registerShortcut("mapmode:select", tr("Mode: {0}", tr("Select")), KeyEvent.VK_S, Shortcut. GROUP_EDIT),159 Shortcut.registerShortcut("mapmode:select", tr("Mode: {0}", tr("Select")), KeyEvent.VK_S, Shortcut.DIRECT), 160 160 mapFrame, 161 161 ImageProvider.getCursor("normal", "selection")); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java
r3594 r4982 43 43 public ZoomAction(MapFrame mapFrame) { 44 44 super(tr("Zoom"), "zoom", tr("Zoom and move map"), 45 Shortcut.registerShortcut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), KeyEvent.VK_Z, Shortcut. GROUP_EDIT),45 Shortcut.registerShortcut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), KeyEvent.VK_Z, Shortcut.DIRECT), 46 46 mapFrame, ImageProvider.getCursor("normal", "zoom")); 47 47 selectionManager = new SelectionManager(this, true, mapFrame.mapView); -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r4948 r4982 121 121 public SearchAction() { 122 122 super(tr("Search..."), "dialogs/search", tr("Search for objects."), 123 Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut. GROUP_HOTKEY), true);123 Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut.CTRL), true); 124 124 putValue("help", ht("/Action/Search")); 125 125 } -
trunk/src/org/openstreetmap/josm/gui/MainApplet.java
r4943 r4982 39 39 public UploadPreferencesAction() { 40 40 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_DIRECT3+Shortcut.GROUPS_ALT1), true);41 Shortcut.registerShortcut("applet:uploadprefs", tr("Upload Preferences"), KeyEvent.VK_U, Shortcut.ALT_CTRL_SHIFT), true); 42 42 } 43 43 public void actionPerformed(ActionEvent e) { -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r4975 r4982 515 515 current = helpMenu.add(help); // FIXME why is help not a JosmAction? 516 516 current.setAccelerator(Shortcut.registerShortcut("system:help", tr("Help"), KeyEvent.VK_F1, 517 Shortcut. GROUP_DIRECT).getKeyStroke());517 Shortcut.DIRECT).getKeyStroke()); 518 518 add(helpMenu, about); 519 519 -
trunk/src/org/openstreetmap/josm/gui/MapMover.java
r4494 r4982 81 81 if (contentPane != null) { 82 82 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 83 Shortcut.registerShortcut("system:movefocusright", tr("Map: {0}", tr("Move right")), KeyEvent.VK_RIGHT, Shortcut. GROUP_HOTKEY).getKeyStroke(),83 Shortcut.registerShortcut("system:movefocusright", tr("Map: {0}", tr("Move right")), KeyEvent.VK_RIGHT, Shortcut.CTRL).getKeyStroke(), 84 84 "MapMover.Zoomer.right"); 85 85 contentPane.getActionMap().put("MapMover.Zoomer.right", new ZoomerAction("right")); 86 86 87 87 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 88 Shortcut.registerShortcut("system:movefocusleft", tr("Map: {0}", tr("Move left")), KeyEvent.VK_LEFT, Shortcut. GROUP_HOTKEY).getKeyStroke(),88 Shortcut.registerShortcut("system:movefocusleft", tr("Map: {0}", tr("Move left")), KeyEvent.VK_LEFT, Shortcut.CTRL).getKeyStroke(), 89 89 "MapMover.Zoomer.left"); 90 90 contentPane.getActionMap().put("MapMover.Zoomer.left", new ZoomerAction("left")); 91 91 92 92 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 93 Shortcut.registerShortcut("system:movefocusup", tr("Map: {0}", tr("Move up")), KeyEvent.VK_UP, Shortcut. GROUP_HOTKEY).getKeyStroke(),93 Shortcut.registerShortcut("system:movefocusup", tr("Map: {0}", tr("Move up")), KeyEvent.VK_UP, Shortcut.CTRL).getKeyStroke(), 94 94 "MapMover.Zoomer.up"); 95 95 contentPane.getActionMap().put("MapMover.Zoomer.up", new ZoomerAction("up")); 96 96 97 97 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 98 Shortcut.registerShortcut("system:movefocusdown", tr("Map: {0}", tr("Move down")), KeyEvent.VK_DOWN, Shortcut. GROUP_HOTKEY).getKeyStroke(),98 Shortcut.registerShortcut("system:movefocusdown", tr("Map: {0}", tr("Move down")), KeyEvent.VK_DOWN, Shortcut.CTRL).getKeyStroke(), 99 99 "MapMover.Zoomer.down"); 100 100 contentPane.getActionMap().put("MapMover.Zoomer.down", new ZoomerAction("down")); 101 101 102 102 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 103 Shortcut.registerShortcut("view:zoominalternate", tr("Map: {0}", tr("Zoom in")), KeyEvent.VK_COMMA, Shortcut. GROUP_HOTKEY).getKeyStroke(),103 Shortcut.registerShortcut("view:zoominalternate", tr("Map: {0}", tr("Zoom in")), KeyEvent.VK_COMMA, Shortcut.CTRL).getKeyStroke(), 104 104 "MapMover.Zoomer.in"); 105 105 contentPane.getActionMap().put("MapMover.Zoomer.in", new ZoomerAction(",")); 106 106 107 107 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 108 Shortcut.registerShortcut("view:zoomoutalternate", tr("Map: {0}", tr("Zoom out")), KeyEvent.VK_PERIOD, Shortcut. GROUP_HOTKEY).getKeyStroke(),108 Shortcut.registerShortcut("view:zoomoutalternate", tr("Map: {0}", tr("Zoom out")), KeyEvent.VK_PERIOD, Shortcut.CTRL).getKeyStroke(), 109 109 "MapMover.Zoomer.out"); 110 110 contentPane.getActionMap().put("MapMover.Zoomer.out", new ZoomerAction(".")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r4958 r4982 74 74 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 75 75 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", 76 tr("Command Stack")), KeyEvent.VK_O, Shortcut.GROUP_LAYER 77 +Shortcut.GROUPS_ALT1), 100, true); 76 tr("Command Stack")), KeyEvent.VK_O, Shortcut.ALT_SHIFT), 100, true); 78 77 undoTree.addMouseListener(new PopupMenuHandler()); 79 78 undoTree.setRootVisible(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r4951 r4982 110 110 super(tr("Conflict"), "conflict", tr("Resolve conflicts."), 111 111 Shortcut.registerShortcut("subwindow:conflict", tr("Toggle: {0}", tr("Conflict")), 112 KeyEvent.VK_C, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 100);112 KeyEvent.VK_C, Shortcut.ALT_SHIFT), 100); 113 113 114 114 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r4953 r4982 70 70 super(tr("Filter"), "filter", tr("Filter objects and hide/disable them."), 71 71 Shortcut.registerShortcut("subwindow:filter", tr("Toggle: {0}", tr("Filter")), 72 KeyEvent.VK_F, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 162);72 KeyEvent.VK_F, Shortcut.ALT_SHIFT), 162); 73 73 build(); 74 74 … … 92 92 private static final Shortcut ENABLE_FILTER_SHORTCUT 93 93 = Shortcut.registerShortcut("core_multikey:enableFilter", tr("Multikey: {0}", tr("Enable filter")), 94 KeyEvent.VK_E, Shortcut. GROUP_DIRECT2+Shortcut.GROUPS_ALT2);94 KeyEvent.VK_E, Shortcut.ALT_CTRL); 95 95 96 96 private static final Shortcut HIDING_FILTER_SHORTCUT 97 97 = Shortcut.registerShortcut("core_multikey:hidingFilter", tr("Multikey: {0}", tr("Hide filter")), 98 KeyEvent.VK_H, Shortcut. GROUP_DIRECT2+Shortcut.GROUPS_ALT2);98 KeyEvent.VK_H, Shortcut.ALT_CTRL); 99 99 100 100 -
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r4958 r4982 64 64 super(tr("History"), "history", tr("Display the history of all selected items."), 65 65 Shortcut.registerShortcut("subwindow:history", tr("Toggle: {0}", tr("History")), KeyEvent.VK_H, 66 Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150);66 Shortcut.ALT_SHIFT), 150); 67 67 build(); 68 68 HelpUtil.setHelpContext(this, HelpUtil.ht("/Dialog/History")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r4959 r4982 150 150 for(int i=0; i < 10; i++) { 151 151 visibilityToggleShortcuts[i] = Shortcut.registerShortcut("subwindow:layers:toggleLayer" + (i+1), 152 tr("Toggle visibility of layer: {0}", (i+1)), k[i], Shortcut. GROUP_LAYER);152 tr("Toggle visibility of layer: {0}", (i+1)), k[i], Shortcut.ALT); 153 153 visibilityToggleActions[i] = new ToggleLayerIndexVisibility(i); 154 154 Main.registerActionShortcut(visibilityToggleActions[i], visibilityToggleShortcuts[i]); … … 162 162 super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), 163 163 Shortcut.registerShortcut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, 164 Shortcut. GROUPS_ALT1+Shortcut.GROUP_LAYER), 100, true);164 Shortcut.ALT_SHIFT), 100, true); 165 165 166 166 // create the models … … 443 443 putValue("help", HelpUtil.ht("/Dialog/LayerList#ShowHideLayer")); 444 444 Shortcut.registerShortcut("core_multikey:showHideLayer", tr("Multikey: {0}", 445 tr("Show/hide layer")), KeyEvent.VK_S, Shortcut. GROUP_DIRECT+Shortcut.GROUPS_ALT1).setAccelerator(this);445 tr("Show/hide layer")), KeyEvent.VK_S, Shortcut.SHIFT).setAccelerator(this); 446 446 if (init) { 447 447 updateEnabledState(); … … 631 631 putValue(SHORT_DESCRIPTION, tr("Activate the selected layer")); 632 632 Shortcut.registerShortcut("core_multikey:activateLayer", tr("Multikey: {0}", 633 tr("Activate layer")), KeyEvent.VK_A, Shortcut. GROUP_DIRECT+Shortcut.GROUPS_ALT1).setAccelerator(this);633 tr("Activate layer")), KeyEvent.VK_A, Shortcut.SHIFT).setAccelerator(this); 634 634 putValue("help", HelpUtil.ht("/Dialog/LayerList#ActivateLayer")); 635 635 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r4956 r4982 87 87 super(tr("Map Paint Styles"), "mapstyle", tr("configure the map painting style"), 88 88 Shortcut.registerShortcut("subwindow:mappaint", tr("Toggle: {0}", tr("MapPaint")), 89 KeyEvent.VK_M, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150);89 KeyEvent.VK_M, Shortcut.ALT_SHIFT), 150); 90 90 build(); 91 91 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r4957 r4982 89 89 super(tr("Relations"), "relationlist", tr("Open a list of all relations."), 90 90 Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), 91 KeyEvent.VK_R, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150);91 KeyEvent.VK_R, Shortcut.ALT_SHIFT), 150); 92 92 93 93 // create the list of relations -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r4957 r4982 129 129 super(tr("Selection"), "selectionlist", tr("Open a selection list window."), 130 130 Shortcut.registerShortcut("subwindow:selection", tr("Toggle: {0}", 131 tr("Current Selection")), KeyEvent.VK_T, Shortcut.GROUP_LAYER+ 132 Shortcut.GROUPS_ALT1), 131 tr("Current Selection")), KeyEvent.VK_T, Shortcut.ALT_SHIFT), 133 132 150, // default height 134 133 true // default is "show dialog" -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r4947 r4982 68 68 public UserListDialog() { 69 69 super(tr("Authors"), "userlist", tr("Open a list of people working on the selected objects."), 70 Shortcut.registerShortcut("subwindow:authors", tr("Toggle: {0}", tr("Authors")), KeyEvent.VK_A, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150);70 Shortcut.registerShortcut("subwindow:authors", tr("Toggle: {0}", tr("Authors")), KeyEvent.VK_A, Shortcut.ALT_SHIFT), 150); 71 71 72 72 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r4957 r4982 87 87 super(tr("Validation Results"), "validator", tr("Open the validation window."), 88 88 Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation results")), 89 KeyEvent.VK_V, Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150);89 KeyEvent.VK_V, Shortcut.ALT_SHIFT), 150); 90 90 91 91 popupMenu = new JPopupMenu(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r4949 r4982 654 654 super(tr("Properties/Memberships"), "propertiesdialog", tr("Properties for selected objects."), 655 655 Shortcut.registerShortcut("subwindow:properties", tr("Toggle: {0}", tr("Properties/Memberships")), KeyEvent.VK_P, 656 Shortcut. GROUP_LAYER+Shortcut.GROUPS_ALT1), 150, true);656 Shortcut.ALT_SHIFT), 150, true); 657 657 658 658 // setting up the properties table … … 1061 1061 super(tr("Delete"), "dialogs/delete", tr("Delete the selected key in all objects"), 1062 1062 Shortcut.registerShortcut("properties:delete", tr("Delete Properties"), KeyEvent.VK_D, 1063 Shortcut. GROUP_DIRECT3+Shortcut.GROUPS_ALT1), false);1063 Shortcut.ALT_CTRL_SHIFT), false); 1064 1064 updateEnabledState(); 1065 1065 } … … 1162 1162 super(tr("Add"), "dialogs/add", tr("Add a new key/value pair to all objects"), 1163 1163 Shortcut.registerShortcut("properties:add", tr("Add Property"), KeyEvent.VK_A, 1164 Shortcut. GROUP_DIRECT2), false);1164 Shortcut.ALT), false); 1165 1165 } 1166 1166 … … 1175 1175 super(tr("Edit"), "dialogs/edit", tr("Edit the value of the selected key for all objects"), 1176 1176 Shortcut.registerShortcut("properties:edit", tr("Edit Properties"), KeyEvent.VK_S, 1177 Shortcut. GROUP_DIRECT2), false);1177 Shortcut.ALT), false); 1178 1178 updateEnabledState(); 1179 1179 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r4943 r4982 977 977 putValue(NAME, tr("Sort")); 978 978 Shortcut sc = Shortcut.registerShortcut("relationeditor:sort", tr("Relation Editor: Sort"), 979 KeyEvent.VK_END, Shortcut. GROUP_DIRECT2);979 KeyEvent.VK_END, Shortcut.ALT); 980 980 sc.setAccelerator(this); 981 981 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc)); … … 1002 1002 putValue(NAME, tr("Reverse")); 1003 1003 // Shortcut.register Shortcut("relationeditor:reverse", tr("Relation Editor: Reverse"), 1004 // KeyEvent.VK_END, Shortcut. GROUP_DIRECT2)1004 // KeyEvent.VK_END, Shortcut.ALT) 1005 1005 updateEnabledState(); 1006 1006 } … … 1025 1025 // putValue(NAME, tr("Move Up")); 1026 1026 Shortcut sc = Shortcut.registerShortcut("relationeditor:moveup", tr("Relation Editor: Move Up"), 1027 KeyEvent.VK_UP, Shortcut. GROUP_DIRECT2);1027 KeyEvent.VK_UP, Shortcut.ALT); 1028 1028 sc.setAccelerator(this); 1029 1029 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc)); … … 1046 1046 // putValue(NAME, tr("Move Down")); 1047 1047 Shortcut sc = Shortcut.registerShortcut("relationeditor:movedown", tr("Relation Editor: Move Down"), 1048 KeyEvent.VK_DOWN, Shortcut. GROUP_DIRECT2);1048 KeyEvent.VK_DOWN, Shortcut.ALT); 1049 1049 sc.setAccelerator(this); 1050 1050 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc)); … … 1067 1067 putValue(NAME, tr("Remove")); 1068 1068 Shortcut sc = Shortcut.registerShortcut("relationeditor:remove", tr("Relation Editor: Remove"), 1069 KeyEvent.VK_DELETE, Shortcut. GROUP_DIRECT2);1069 KeyEvent.VK_DELETE, Shortcut.ALT); 1070 1070 sc.setAccelerator(this); 1071 1071 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc)); … … 1404 1404 putValue(NAME, tr("Download Members")); 1405 1405 Shortcut sc = Shortcut.registerShortcut("relationeditor:downloadincomplete", tr("Relation Editor: Download Members"), 1406 KeyEvent.VK_HOME, Shortcut. GROUP_DIRECT2);1406 KeyEvent.VK_HOME, Shortcut.ALT); 1407 1407 sc.setAccelerator(this); 1408 1408 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc)); … … 1436 1436 putValue(NAME, tr("Download Members")); 1437 1437 // Shortcut.register Shortcut("relationeditor:downloadincomplete", tr("Relation Editor: Download Members"), 1438 // KeyEvent.VK_K, Shortcut. GROUP_DIRECT2)1438 // KeyEvent.VK_K, Shortcut.ALT) 1439 1439 updateEnabledState(); 1440 1440 } … … 1682 1682 1683 1683 public PasteTagsAction() { 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());1684 registerCopyPasteAction(this, "PASTE_TAGS", Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), KeyEvent.VK_V, Shortcut.CTRL_SHIFT).getKeyStroke()); 1685 1685 } 1686 1686 -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r4942 r4982 35 35 public JumpToNextMarker(JumpToMarkerLayer layer) { 36 36 Shortcut.registerShortcut("core_multikey:nextMarker", tr("Multikey: {0}", tr("Next marker")), 37 KeyEvent.VK_J, Shortcut. GROUP_DIRECT2+Shortcut.GROUPS_ALT2).setAccelerator(this);37 KeyEvent.VK_J, Shortcut.ALT_CTRL).setAccelerator(this); 38 38 putValue(SHORT_DESCRIPTION, tr("Jump to next marker")); 39 39 putValue(NAME, tr("Jump to next marker")); … … 91 91 92 92 Shortcut.registerShortcut("core_multikey:previousMarker", tr("Multikey: {0}", tr("Previos marker")), 93 KeyEvent.VK_P, Shortcut. GROUP_DIRECT2+Shortcut.GROUPS_ALT2).setAccelerator(this);93 KeyEvent.VK_P, Shortcut.ALT_CTRL).setAccelerator(this); 94 94 putValue(SHORT_DESCRIPTION, tr("Jump to previous marker")); 95 95 putValue(NAME, tr("Jump to previous marker")); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r4897 r4982 65 65 private ImageViewerDialog() { 66 66 super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged", 67 tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut. GROUP_EDIT), 200);67 tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200); 68 68 69 69 /* Don't show a detached dialog right from the start. */ … … 83 83 btnPrevious.setPreferredSize(buttonDim); 84 84 Shortcut scPrev = Shortcut.registerShortcut( 85 "geoimage:previous", tr("Geoimage: {0}", tr("Show previous Image")), KeyEvent.VK_PAGE_UP, Shortcut. GROUP_DIRECT);85 "geoimage:previous", tr("Geoimage: {0}", tr("Show previous Image")), KeyEvent.VK_PAGE_UP, Shortcut.DIRECT); 86 86 final String APREVIOUS = "Previous Image"; 87 87 Main.registerActionShortcut(prevAction, scPrev); … … 94 94 btnDelete.setPreferredSize(buttonDim); 95 95 Shortcut scDelete = Shortcut.registerShortcut( 96 "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", tr("Remove photo from layer")), KeyEvent.VK_DELETE, Shortcut. GROUPS_ALT1+Shortcut.GROUP_DIRECT);96 "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", tr("Remove photo from layer")), KeyEvent.VK_DELETE, Shortcut.SHIFT); 97 97 Main.registerActionShortcut(delAction, scDelete); 98 98 btnDelete.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(scDelete.getKeyStroke(), DELETE_TEXT); … … 103 103 btnDeleteFromDisk.setPreferredSize(buttonDim); 104 104 Shortcut scDeleteFromDisk = Shortcut.registerShortcut( 105 "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut. GROUPS_ALT1+Shortcut.GROUP_HOTKEY);105 "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut.CTRL_SHIFT); 106 106 final String ADELFROMDISK = "Delete image file from disk"; 107 107 Main.registerActionShortcut(delFromDiskAction, scDeleteFromDisk); … … 113 113 btnNext.setPreferredSize(buttonDim); 114 114 Shortcut scNext = Shortcut.registerShortcut( 115 "geoimage:next", tr("Geoimage: {0}", tr("Show next Image")), KeyEvent.VK_PAGE_DOWN, Shortcut. GROUP_DIRECT);115 "geoimage:next", tr("Geoimage: {0}", tr("Show next Image")), KeyEvent.VK_PAGE_DOWN, Shortcut.DIRECT); 116 116 final String ANEXT = "Next Image"; 117 117 Main.registerActionShortcut(nextAction, scNext); -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSearchAction.java
r4286 r4982 15 15 public TaggingPresetSearchAction() { 16 16 super(tr("Search preset"), "dialogs/search", tr("Show preset search dialog"), 17 Shortcut.registerShortcut("preset:search", tr("Search presets"), KeyEvent.VK_F3, Shortcut. GROUP_DIRECT), false);17 Shortcut.registerShortcut("preset:search", tr("Search presets"), KeyEvent.VK_F3, Shortcut.DIRECT), false); 18 18 putValue("toolbar", "presets/search"); 19 19 Main.toolbar.register(this);
Note:
See TracChangeset
for help on using the changeset viewer.