Changeset 11072 in josm


Ignore:
Timestamp:
2016-10-02T21:27:14+02:00 (14 months ago)
Author:
simon04
Message:

fix #13748 - Focus in the "coordinates" field when adding a node

File:
1 edited

Legend:

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

    r11045 r11072  
    99import java.awt.event.FocusEvent;
    1010import java.awt.event.FocusListener;
     11import java.awt.event.WindowAdapter;
     12import java.awt.event.WindowEvent;
    1113import java.util.Arrays;
    1214
     
    144146        });
    145147        setContent(tabs, false);
     148        addWindowListener(new WindowAdapter() {
     149            @Override
     150            public void windowOpened(WindowEvent e) {
     151                tfLatLon.requestFocusInWindow();
     152            }
     153        });
    146154    }
    147155
Note: See TracChangeset for help on using the changeset viewer.