Changeset 28167 in osm for applications/editors/josm/plugins/FastDraw/src/org
- Timestamp:
- 2012-03-30T19:47:33+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java
r27852 r28167 90 90 private boolean lineWasSaved; 91 91 private boolean deltaChanged; 92 92 private final int mainKeyCode; 93 93 94 FastDrawingMode(MapFrame mapFrame) { 94 95 super(tr("FastDrawing"), "turbopen.png", tr("Fast drawing mode"), … … 103 104 cursorDrawing = ImageProvider.getCursor("crosshair", "mode"); 104 105 //loadPrefs(); 106 mainKeyCode = getShortcut().getKeyStroke().getKeyCode(); 105 107 } 106 108 … … 429 431 430 432 private void doKeyEvent(KeyEvent e) { 431 // System.out.println(e); 433 if (getShortcut().isEvent(e)) { // repeated press 434 tryToLoadWay(); 435 return; 436 } 432 437 switch(e.getKeyCode()) { 433 438 case KeyEvent.VK_BACK_SPACE: … … 464 469 break; 465 470 case KeyEvent.VK_DOWN: 471 if (ctrl || shift || alt) return; 466 472 // more details 467 473 e.consume(); … … 470 476 break; 471 477 case KeyEvent.VK_UP: 478 if (ctrl || shift || alt) return; 472 479 // less details 473 480 e.consume(); … … 494 501 } 495 502 break; 496 case KeyEvent.VK_T: 497 tryToLoadWay(); 498 break; 503 499 504 case KeyEvent.VK_I: 500 505 JOptionPane.showMessageDialog(Main.parent,
Note:
See TracChangeset
for help on using the changeset viewer.