Changeset 6018 in josm


Ignore:
Timestamp:
2013-06-24T13:39:48+02:00 (11 years ago)
Author:
akks
Message:

see #8652: fix toggling panels by Tab (did not work when GPX or imagery layer was the only one)

Location:
trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r5990 r6018  
    1313import java.awt.event.ComponentEvent;
    1414import java.awt.event.KeyEvent;
     15import java.awt.event.MouseAdapter;
    1516import java.awt.event.MouseEvent;
    16 import java.awt.event.MouseMotionListener;
    1717import java.awt.geom.Area;
    1818import java.awt.geom.GeneralPath;
     
    261261
    262262        //store the last mouse action
    263         this.addMouseMotionListener(new MouseMotionListener() {
     263        this.addMouseListener(new MouseAdapter() {
    264264            @Override public void mouseDragged(MouseEvent e) {
    265265                mouseMoved(e);
     
    267267            @Override public void mouseMoved(MouseEvent e) {
    268268                lastMEvent = e;
     269            }           
     270            @Override
     271            public void mousePressed(MouseEvent me) {
     272                // focus the MapView component when mouse is pressed inside it
     273                requestFocus();
    269274            }
    270275        });
Note: See TracChangeset for help on using the changeset viewer.