Changeset 7000 in josm
- Timestamp:
- 2014-04-25T19:46:38+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r6993 r7000 65 65 * If no object is under the mouse, move all selected objects (if any) 66 66 * 67 * On Mac OS , Ctrl + mouse button 1 simulates right click (map move), so the67 * On Mac OS X, Ctrl + mouse button 1 simulates right click (map move), so the 68 68 * feature "selection remove" is disabled on this platform. 69 69 */ … … 111 111 112 112 private Mode mode = null; 113 private SelectionManager selectionManager;113 private final SelectionManager selectionManager; 114 114 private boolean cancelDrawMode = false; 115 115 private boolean drawTargetHighlight; … … 500 500 501 501 cancelDrawMode = true; 502 if (mode == Mode.select) 503 return; 502 if (mode == Mode.select) { 503 // Unregisters selectionManager if ctrl has been pressed after mouse click on Mac OS X in order to move the map 504 if (ctrl && Main.isPlatformOsx()) { 505 selectionManager.unregister(mv); 506 mv.requestClearRect(); 507 // Make sure correct cursor is displayed 508 mv.setNewCursor(Cursor.MOVE_CURSOR, this); 509 } 510 return; 511 } 504 512 505 513 // do not count anything as a move if it lasts less than 100 milliseconds. … … 567 575 } 568 576 569 570 571 577 @Override 572 578 public void mouseExited(MouseEvent e) { … … 575 581 } 576 582 } 577 578 583 579 584 @Override
Note:
See TracChangeset
for help on using the changeset viewer.