Changeset 2161 in josm for trunk


Ignore:
Timestamp:
2009-09-19T16:37:52+02:00 (15 years ago)
Author:
xeen
Message:

fix #3502 (the ESC listener on ExtendedDialog stopped working)

File:
1 edited

Legend:

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

    r2154 r2161  
    283283        };
    284284
    285         rootPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
     285        getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
    286286        .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE");
    287         rootPane.getActionMap().put("ESCAPE", actionListener);
    288     }
    289 
     287        getRootPane().getActionMap().put("ESCAPE", actionListener);
     288    }
     289
     290    /**
     291     * Override setVisible to be able to save the window geometry if required
     292     */
    290293    @Override
    291294    public void setVisible(boolean visible) {
Note: See TracChangeset for help on using the changeset viewer.