Changeset 5696 in josm
- Timestamp:
- 2013-02-06T01:04:27+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5670 r5696 511 511 contentPanePrivate.getActionMap().remove(action); 512 512 } 513 514 /** 515 * Replies the registered action for the given shortcut 516 * @param shortcut The shortcut to look for 517 * @return the registered action for the given shortcut 518 * @since 5696 519 */ 520 public static Action getRegisteredActionShortcut(Shortcut shortcut) { 521 KeyStroke keyStroke = shortcut.getKeyStroke(); 522 if (keyStroke == null) 523 return null; 524 Object action = contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).get(keyStroke); 525 if (action instanceof Action) 526 return (Action) action; 527 return null; 528 } 513 529 514 530 /////////////////////////////////////////////////////////////////////////// -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r5619 r5696 74 74 import org.openstreetmap.josm.gui.layer.Layer; 75 75 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 76 import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField; 76 77 import org.openstreetmap.josm.gui.widgets.ListPopupMenu; 77 78 import org.openstreetmap.josm.tools.ImageProvider; … … 153 154 displaylist.addListSelectionListener(selectAction); 154 155 155 final JTextField filter = new JTextField();156 final JTextField filter = new DisableShortcutsOnFocusGainedTextField(); 156 157 filter.setToolTipText(tr("Relation list filter")); 157 158 filter.getDocument().addDocumentListener(new DocumentListener() {
Note:
See TracChangeset
for help on using the changeset viewer.