Changeset 495 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2007-12-17T18:49:58+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r484 r495 79 79 super.actionPerformed(e); 80 80 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 81 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0; 81 82 82 83 Command c; … … 84 85 c = deleteWithReferences(Main.ds.getSelected()); 85 86 } else { 86 c = delete(Main.ds.getSelected(), false);87 c = delete(Main.ds.getSelected(), !alt); 87 88 } 88 89 if (c != null) { … … 114 115 c = deleteWithReferences(Collections.singleton((OsmPrimitive)ws.way)); 115 116 } else { 116 c = delete(Collections.singleton((OsmPrimitive)ws.way), alt);117 c = delete(Collections.singleton((OsmPrimitive)ws.way), !alt); 117 118 } 118 119 } … … 120 121 c = deleteWithReferences(Collections.singleton(sel)); 121 122 } else { 122 c = delete(Collections.singleton(sel), alt);123 c = delete(Collections.singleton(sel), !alt); 123 124 } 124 125 if (c != null) { … … 281 282 282 283 @Override public String getModeHelpText() { 283 return tr("Click to delete. Shift: delete way segment. Alt: d elete way+nodes. Ctrl: delete referring objects.");284 return tr("Click to delete. Shift: delete way segment. Alt: don't delete unused nodes when deleting a way. Ctrl: delete referring objects."); 284 285 } 285 286 }
Note:
See TracChangeset
for help on using the changeset viewer.