Changeset 1457 in josm
- Timestamp:
- 2009-02-28T23:50:50+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r1418 r1457 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent; 7 8 import java.awt.event.KeyEvent; 8 9 import java.awt.event.MouseEvent; … … 72 73 return; 73 74 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 74 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;75 boolean alt = (e.getModifiers() & (ActionEvent.ALT_MASK|InputEvent.ALT_GRAPH_MASK)) != 0; 75 76 76 77 Command c; … … 99 100 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 100 101 boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 101 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;102 boolean alt = (e.getModifiers() & (ActionEvent.ALT_MASK|InputEvent.ALT_GRAPH_MASK)) != 0; 102 103 103 104 OsmPrimitive sel = Main.map.mapView.getNearestNode(e.getPoint()); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1448 r1457 579 579 private void updateKeyModifiers(InputEvent e) { 580 580 ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 581 alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;581 alt = (e.getModifiers() & (ActionEvent.ALT_MASK|InputEvent.ALT_GRAPH_MASK)) != 0; 582 582 shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 583 583 } … … 585 585 private void updateKeyModifiers(MouseEvent e) { 586 586 ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 587 alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;587 alt = (e.getModifiers() & (ActionEvent.ALT_MASK|InputEvent.ALT_GRAPH_MASK)) != 0; 588 588 shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 589 589 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java
r1169 r1457 77 77 mousePos = null; 78 78 dragging = false; 79 80 /*81 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;82 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;83 */84 79 } 85 80 -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r1454 r1457 9 9 import java.awt.Rectangle; 10 10 import java.awt.event.ActionEvent; 11 import java.awt.event.InputEvent; 11 12 import java.awt.event.KeyEvent; 12 13 import java.awt.event.MouseEvent; … … 318 319 return; 319 320 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 320 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;321 boolean alt = (e.getModifiers() & (ActionEvent.ALT_MASK|InputEvent.ALT_GRAPH_MASK)) != 0; 321 322 boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 322 323
Note:
See TracChangeset
for help on using the changeset viewer.