- Timestamp:
- 2011-11-29T01:34:22+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r3501 r4619 20 20 import javax.swing.Action; 21 21 import javax.swing.BorderFactory; 22 import javax.swing.JComponent; 22 23 import javax.swing.JDialog; 23 24 import javax.swing.JLabel; … … 27 28 import javax.swing.JScrollPane; 28 29 import javax.swing.JSplitPane; 30 import javax.swing.KeyStroke; 29 31 import javax.swing.ListSelectionModel; 30 32 import javax.swing.event.ListSelectionEvent; … … 262 264 putValue(Action.NAME, tr("Cancel")); 263 265 putValue(Action.SMALL_ICON, ImageProvider.get("", "cancel")); 266 getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) 267 .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); 268 getRootPane().getActionMap().put("ESCAPE", this); 264 269 setEnabled(true); 265 270 }
Note:
See TracChangeset
for help on using the changeset viewer.