- Timestamp:
- 2012-02-16T18:41:28+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r4836 r4957 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.SHIFT_DEFAULT),24 KeyEvent.VK_M, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), 25 25 true /* register */ 26 26 ); -
trunk/src/org/openstreetmap/josm/actions/ValidateAction.java
r4874 r4957 46 46 public ValidateAction() { 47 47 super(tr("Validation"), "dialogs/validator", tr("Performs the data validation"), 48 Shortcut.registerShortcut("tools:validate", tr("Tool: {0}", tr("Validation")), KeyEvent.VK_V, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 48 Shortcut.registerShortcut("tools:validate", tr("Tool: {0}", tr("Validation")), 49 KeyEvent.VK_V, Shortcut.GROUP_EDIT+Shortcut.GROUPS_ALT1), true); 49 50 } 50 51 -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r4475 r4957 95 95 "delete", 96 96 tr("Delete nodes or ways."), 97 Shortcut.registerShortcut("mapmode:delete", tr("Mode: {0}",tr("Delete")), KeyEvent.VK_D, Shortcut.GROUP_EDIT), 97 Shortcut.registerShortcut("mapmode:delete", tr("Mode: {0}",tr("Delete")), 98 KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT+Shortcut.GROUPS_ALT2), 98 99 mapFrame, 99 100 ImageProvider.getCursor("normal", "delete")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r4885 r4957 88 88 public RelationListDialog() { 89 89 super(tr("Relations"), "relationlist", tr("Open a list of all relations."), 90 Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), KeyEvent.VK_R,91 Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150);90 Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), 91 KeyEvent.VK_R, Shortcut.GROUP_LAYER+Shortcut.GROUPS_ALT1), 150); 92 92 93 93 // create the list of relations … … 142 142 143 143 // activate DEL in the list of relations 144 displaylist.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE,0), "deleteRelation");145 displaylist.getActionMap().put("deleteRelation", deleteAction);144 //displaylist.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE,0), "deleteRelation"); 145 //displaylist.getActionMap().put("deleteRelation", deleteAction); 146 146 147 147 popupMenu = new RelationDialogPopupMenu(displaylist); -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r4536 r4957 128 128 public SelectionListDialog() { 129 129 super(tr("Selection"), "selectionlist", tr("Open a selection list window."), 130 Shortcut.registerShortcut("subwindow:selection", tr("Toggle: {0}", tr("Current Selection")), KeyEvent.VK_T, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 130 Shortcut.registerShortcut("subwindow:selection", tr("Toggle: {0}", 131 tr("Current Selection")), KeyEvent.VK_T, Shortcut.GROUP_LAYER+ 132 Shortcut.GROUPS_ALT1), 131 133 150, // default height 132 134 true // default is "show dialog" … … 145 147 lstPrimitives.addMouseListener(new SelectionPopupMenuLauncher()); 146 148 lstPrimitives.addMouseListener(new DblClickHandler()); 147 149 148 150 popupMenu = new SelectionPopup(lstPrimitives); 149 151 } … … 225 227 return popupMenu.add(a); 226 228 } 227 229 228 230 public void addPopupMenuListener(PopupMenuListener l) { 229 231 popupMenu.addPopupMenuListener(l); … … 233 235 popupMenu.addPopupMenuListener(l); 234 236 } 235 237 236 238 public Collection<OsmPrimitive> getSelectedPrimitives() { 237 239 return model.getSelected(); 238 240 } 239 241 240 242 /** 241 243 * Updates the dialog title with a summary of the current JOSM selection -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r4707 r4957 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.SHIFT_DEFAULT), 150);89 KeyEvent.VK_V, Shortcut.GROUP_LAYER+Shortcut.GROUPS_ALT1), 150); 90 90 91 91 popupMenu = new JPopupMenu();
Note:
See TracChangeset
for help on using the changeset viewer.