Ignore:
Timestamp:
2016-08-12T21:07:51+02:00 (8 years ago)
Author:
simon04
Message:

see #13319 - Use InputMapUtils where applicable (VK_ENTER)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r10722 r10790  
    496496
    497497        // ENTER = editAction, open "edit" dialog
    498         tagTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
    499                 .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "onTableEnter");
    500         tagTable.getActionMap().put("onTableEnter", editAction);
    501         membershipTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
    502                 .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "onTableEnter");
    503         membershipTable.getActionMap().put("onTableEnter", editAction);
     498        InputMapUtils.addEnterActionWhenAncestor(tagTable, editAction);
     499        InputMapUtils.addEnterActionWhenAncestor(membershipTable, editAction);
    504500
    505501        // INSERT button = addAction, open "add tag" dialog
Note: See TracChangeset for help on using the changeset viewer.