Changeset 13137 in josm


Ignore:
Timestamp:
2017-11-20T18:08:54+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14101 - Keystrokes in filters get captured as shortcuts

File:
1 edited

Legend:

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

    r12846 r13137  
    1414
    1515import javax.swing.AbstractAction;
     16import javax.swing.DefaultCellEditor;
    1617import javax.swing.JCheckBox;
    1718import javax.swing.JTable;
     
    4647import org.openstreetmap.josm.gui.util.MultikeyActionsHandler;
    4748import org.openstreetmap.josm.gui.util.MultikeyShortcutAction;
     49import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField;
    4850import org.openstreetmap.josm.tools.ImageProvider;
    4951import org.openstreetmap.josm.tools.InputMapUtils;
     
    114116        userTable = new UserTable(filterModel);
    115117
     118        userTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    116119        userTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    117120
     
    128131        userTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
    129132        userTable.setDefaultRenderer(String.class, new StringRenderer());
     133        userTable.setDefaultEditor(String.class, new DefaultCellEditor(new DisableShortcutsOnFocusGainedTextField()));
    130134
    131135        SideButton addButton = new SideButton(new AbstractAction() {
Note: See TracChangeset for help on using the changeset viewer.