Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r10308 r10378 150 150 ExistingValues old = new ExistingValues(key); 151 151 for (OsmPrimitive osm : sel) { 152 oldValue 152 oldValue = osm.get(key); 153 153 if (oldValue != null) { 154 154 old.addValue(oldValue); … … 209 209 propertyTable.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, KeyEvent.SHIFT_MASK), "shiftenter"); 210 210 propertyTable.getActionMap().put("shiftenter", new AbstractAction() { 211 @Override 211 @Override public void actionPerformed(ActionEvent e) { 212 212 buttonAction(1, e); // add all tags on Shift-Enter 213 213 } … … 242 242 protected void buttonAction(int buttonIndex, ActionEvent evt) { 243 243 // if layer all layers were closed, ignore all actions 244 if (Main.main.getCurrentDataSet() != null 244 if (Main.main.getCurrentDataSet() != null && buttonIndex != 2) { 245 245 TableModel tm = propertyTable.getModel(); 246 246 for (int i = 0; i < tm.getRowCount(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.