Changeset 6018 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2013-06-24T13:39:48+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r5990 r6018 13 13 import java.awt.event.ComponentEvent; 14 14 import java.awt.event.KeyEvent; 15 import java.awt.event.MouseAdapter; 15 16 import java.awt.event.MouseEvent; 16 import java.awt.event.MouseMotionListener;17 17 import java.awt.geom.Area; 18 18 import java.awt.geom.GeneralPath; … … 261 261 262 262 //store the last mouse action 263 this.addMouse MotionListener(new MouseMotionListener() {263 this.addMouseListener(new MouseAdapter() { 264 264 @Override public void mouseDragged(MouseEvent e) { 265 265 mouseMoved(e); … … 267 267 @Override public void mouseMoved(MouseEvent e) { 268 268 lastMEvent = e; 269 } 270 @Override 271 public void mousePressed(MouseEvent me) { 272 // focus the MapView component when mouse is pressed inside it 273 requestFocus(); 269 274 } 270 275 });
Note:
See TracChangeset
for help on using the changeset viewer.