- Timestamp:
- 2012-07-26T01:38:32+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/InputMapUtils.java
r5200 r5367 30 30 public static void enableEnter(JButton b) { 31 31 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"); 33 33 b.getActionMap().put("enter",b.getAction()); 34 34 }
Note:
See TracChangeset
for help on using the changeset viewer.