Changeset 6047 in josm for trunk/src


Ignore:
Timestamp:
2013-07-03T15:00:20+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8846 - use correct key mask on Mac in PasteAction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/PasteAction.java

    r5953 r6047  
    88import java.awt.MouseInfo;
    99import java.awt.Point;
     10import java.awt.Toolkit;
    1011import java.awt.event.ActionEvent;
    1112import java.awt.event.KeyEvent;
     
    2223import org.openstreetmap.josm.data.osm.PrimitiveData;
    2324import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy;
     25import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener;
    2426import org.openstreetmap.josm.data.osm.RelationData;
    2527import org.openstreetmap.josm.data.osm.RelationMemberData;
    2628import org.openstreetmap.josm.data.osm.WayData;
    27 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener;
    2829import org.openstreetmap.josm.gui.ExtendedDialog;
    2930import org.openstreetmap.josm.gui.layer.Layer;
     
    8687        // default to paste in center of map (pasted via menu or cursor not in MapView)
    8788        EastNorth mPosition = Main.map.mapView.getCenter();
    88         if((e.getModifiers() & ActionEvent.CTRL_MASK) != 0) {
     89        if((e.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0) {
    8990            final Point mp = MouseInfo.getPointerInfo().getLocation();
    9091            final Point tl = Main.map.mapView.getLocationOnScreen();
Note: See TracChangeset for help on using the changeset viewer.