- Timestamp:
- 2011-11-29T01:28:10+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r4310 r4618 24 24 import javax.swing.AbstractAction; 25 25 import javax.swing.DefaultListCellRenderer; 26 import javax.swing.JComponent; 26 27 import javax.swing.JDialog; 27 28 import javax.swing.JLabel; … … 30 31 import javax.swing.JPanel; 31 32 import javax.swing.JScrollPane; 33 import javax.swing.KeyStroke; 32 34 import javax.swing.WindowConstants; 33 35 … … 293 295 putValue(SHORT_DESCRIPTION, tr("Close this dialog and resume editing in JOSM")); 294 296 putValue(SMALL_ICON, ImageProvider.get("cancel")); 297 getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) 298 .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); 299 getRootPane().getActionMap().put("ESCAPE", this); 295 300 } 296 301
Note:
See TracChangeset
for help on using the changeset viewer.