Changeset 6227 in josm for trunk/src/org
- Timestamp:
- 2013-09-09T02:48:51+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r6140 r6227 8 8 import java.awt.MouseInfo; 9 9 import java.awt.Point; 10 import java.awt.Toolkit;11 10 import java.awt.event.ActionEvent; 12 11 import java.awt.event.KeyEvent; … … 88 87 // default to paste in center of map (pasted via menu or cursor not in MapView) 89 88 EastNorth mPosition = Main.map.mapView.getCenter(); 90 if((e.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0) { 89 // We previously checked for modifier to know if the action has been trigerred via shortcut or via menu 90 // But this does not work if the shortcut is changed to a single key (see #9055) 91 // Observed behaviour: getActionCommand() returns Action.NAME when triggered via menu, but shortcut text when triggered with it 92 if (!getValue(NAME).equals(e.getActionCommand())) { 91 93 final Point mp = MouseInfo.getPointerInfo().getLocation(); 92 94 final Point tl = Main.map.mapView.getLocationOnScreen();
Note:
See TracChangeset
for help on using the changeset viewer.