- Timestamp:
- 2013-07-03T15:00:20+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r5953 r6047 8 8 import java.awt.MouseInfo; 9 9 import java.awt.Point; 10 import java.awt.Toolkit; 10 11 import java.awt.event.ActionEvent; 11 12 import java.awt.event.KeyEvent; … … 22 23 import org.openstreetmap.josm.data.osm.PrimitiveData; 23 24 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy; 25 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener; 24 26 import org.openstreetmap.josm.data.osm.RelationData; 25 27 import org.openstreetmap.josm.data.osm.RelationMemberData; 26 28 import org.openstreetmap.josm.data.osm.WayData; 27 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener;28 29 import org.openstreetmap.josm.gui.ExtendedDialog; 29 30 import org.openstreetmap.josm.gui.layer.Layer; … … 86 87 // default to paste in center of map (pasted via menu or cursor not in MapView) 87 88 EastNorth mPosition = Main.map.mapView.getCenter(); 88 if((e.getModifiers() & ActionEvent.CTRL_MASK) != 0) {89 if((e.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0) { 89 90 final Point mp = MouseInfo.getPointerInfo().getLocation(); 90 91 final Point tl = Main.map.mapView.getLocationOnScreen();
Note:
See TracChangeset
for help on using the changeset viewer.