Changeset 2229 in josm for trunk/src/org
- Timestamp:
- 2009-10-03T13:47:51+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r2217 r2229 212 212 // of the first middle click) 213 213 if(isAtOldPosition && middleMouseDown) { 214 popupCycleSelection(osms); 214 // Hand down mouse modifiers so the SHIFT mod can be 215 // handled correctly (see funcion) 216 popupCycleSelection(osms, ms.modifiers); 215 217 } 216 218 … … 295 297 * will automatically select the next item and update the map 296 298 * @param osms 297 */ 298 private final void popupCycleSelection(Collection<OsmPrimitive> osms) { 299 * @param mouse modifiers 300 */ 301 private final void popupCycleSelection(Collection<OsmPrimitive> osms, int mods) { 299 302 // Find some items that are required for cycling through 300 303 OsmPrimitive firstItem = null; … … 310 313 if(firstSelected == null && osm.isSelected()) { 311 314 firstSelected = osm; 315 } 316 } 317 318 // Clear previous selection if SHIFT (add to selection) is not 319 // pressed. Cannot use "setSelected()" because it will cause a 320 // fireSelectionChanged event which is unnecessary at this point. 321 if((mods & MouseEvent.SHIFT_DOWN_MASK) == 0) { 322 for(OsmPrimitive o : Main.main.getCurrentDataSet().getSelected()) { 323 o.setSelected(false); 312 324 } 313 325 }
Note:
See TracChangeset
for help on using the changeset viewer.