Changeset 5367 in josm for trunk


Ignore:
Timestamp:
2012-07-26T01:38:32+02:00 (12 years ago)
Author:
Don-vip
Message:

see #7626 - Fix usage of key "Enter' in dialogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/InputMapUtils.java

    r5200 r5367  
    3030      public static void enableEnter(JButton b) {
    3131         b.setFocusable(true);
    32          b.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_Q,0), "enter");
     32         b.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "enter");
    3333         b.getActionMap().put("enter",b.getAction());
    3434      }
Note: See TracChangeset for help on using the changeset viewer.