Changeset 5260 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-06-01T11:26:25+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r4982 r5260 13 13 import java.awt.Toolkit; 14 14 import java.awt.event.AWTEventListener; 15 import java.awt.event.ActionEvent;16 15 import java.awt.event.InputEvent; 17 16 import java.awt.event.KeyEvent; … … 82 81 final private Cursor cursorImproveLock; 83 82 84 private boolean shift = false;85 private boolean ctrl = false;86 private boolean alt = false;87 88 83 private final Color guideColor; 89 84 private final BasicStroke selectTargetWayStroke; … … 510 505 // ------------------------------------------------------------------------- 511 506 /** 512 * Updates shift and ctrl key states513 */514 @Override515 protected void updateKeyModifiers(InputEvent e) {516 ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;517 shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0;518 // accept either Alt key (including AltGr)519 alt = ((e.getModifiers() & (ActionEvent.ALT_MASK | InputEvent.ALT_GRAPH_MASK)) != 0);520 }521 522 /**523 507 * Sets new cursor depending on state, mouse position 524 508 */
Note:
See TracChangeset
for help on using the changeset viewer.