diff --git a/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java b/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
index c962255..543e1b0 100644
|
a
|
b
|
import java.util.HashSet;
|
| 31 | 31 | import java.util.Iterator; |
| 32 | 32 | import java.util.LinkedList; |
| 33 | 33 | import java.util.List; |
| 34 | | import java.util.Map.Entry; |
| 35 | 34 | import java.util.Map; |
| | 35 | import java.util.Map.Entry; |
| 36 | 36 | import java.util.Set; |
| 37 | 37 | import java.util.TreeMap; |
| 38 | 38 | import java.util.TreeSet; |
| … |
… |
import javax.swing.text.JTextComponent;
|
| 65 | 65 | |
| 66 | 66 | import org.openstreetmap.josm.Main; |
| 67 | 67 | import org.openstreetmap.josm.actions.JosmAction; |
| | 68 | import org.openstreetmap.josm.actions.search.SearchAction.SearchMode; |
| | 69 | import org.openstreetmap.josm.actions.search.SearchAction.SearchSetting; |
| 68 | 70 | import org.openstreetmap.josm.command.ChangeCommand; |
| 69 | 71 | import org.openstreetmap.josm.command.ChangePropertyCommand; |
| 70 | 72 | import org.openstreetmap.josm.command.Command; |
| … |
… |
import org.openstreetmap.josm.tools.LanguageInfo;
|
| 102 | 104 | import org.openstreetmap.josm.tools.OpenBrowser; |
| 103 | 105 | import org.openstreetmap.josm.tools.Shortcut; |
| 104 | 106 | import org.openstreetmap.josm.tools.Utils; |
| 105 | | import org.openstreetmap.josm.actions.search.SearchAction.SearchMode; |
| 106 | | import org.openstreetmap.josm.actions.search.SearchAction.SearchSetting; |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * This dialog displays the properties of the current selected primitives. |
| … |
… |
public class PropertiesDialog extends ToggleDialog implements SelectionChangedLi
|
| 378 | 378 | } |
| 379 | 379 | } |
| 380 | 380 | propertyTable.changeSelection(row, 0, false, false); |
| | 381 | propertyTable.requestFocusInWindow(); |
| 381 | 382 | } |
| 382 | 383 | |
| 383 | 384 | /** |
| … |
… |
public class PropertiesDialog extends ToggleDialog implements SelectionChangedLi
|
| 487 | 488 | lastAddKey = key; |
| 488 | 489 | lastAddValue = value; |
| 489 | 490 | Main.main.undoRedo.add(new ChangePropertyCommand(sel, key, value)); |
| 490 | | btnAdd.requestFocusInWindow(); |
| | 491 | propertyTable.requestFocusInWindow(); // necessary? |
| 491 | 492 | } |
| 492 | 493 | |
| 493 | 494 | /** |
| … |
… |
public class PropertiesDialog extends ToggleDialog implements SelectionChangedLi
|
| 788 | 789 | |
| 789 | 790 | // -- add action and shortcut |
| 790 | 791 | this.btnAdd = new SideButton(addAction); |
| 791 | | btnAdd.setFocusable(true); |
| 792 | | btnAdd.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "onEnter"); |
| 793 | | btnAdd.getActionMap().put("onEnter", addAction); |
| | 792 | getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "onEnter"); |
| | 793 | getActionMap().put("onEnter", addAction); |
| | 794 | // disable the default enter keybinding in the tables: |
| | 795 | propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "none"); |
| | 796 | |
| 794 | 797 | |
| 795 | 798 | // -- edit action |
| 796 | 799 | // |