Changeset 19371 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java
- Timestamp:
- 2010-01-10T15:46:08+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java
r18544 r19371 5 5 6 6 import java.awt.Cursor; 7 import java.awt.Toolkit; 7 8 import java.awt.event.ActionEvent; 8 9 import java.awt.event.MouseEvent; … … 87 88 if (e.getButton() != MouseEvent.BUTTON1) 88 89 return; 89 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;90 boolean ctrl = (e.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0; 90 91 // boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0; 91 92 boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 92 if (shift )93 if (shift && !ctrl) 93 94 mode = Mode.moveZ; 94 else if ( ctrl)95 else if (shift && ctrl) 95 96 mode = Mode.rotate; 96 97 else
Note:
See TracChangeset
for help on using the changeset viewer.