| 468 | |
| 469 | |
| 470 | bool EditPointTool::keyRelease(QKeyEvent* event) |
| 471 | { |
| 472 | if (text_editor && text_editor->keyReleaseEvent(event)) |
| 473 | { |
| 474 | return true; |
| 475 | } |
| 476 | |
| 477 | switch(event->key()) |
| 478 | { |
| 479 | case Qt::Key_Control: |
| 480 | angle_helper->setActive(false); |
| 481 | if (editingInProgress()) |
| 482 | reapplyConstraintHelpers(); |
| 483 | updateStatusText(); |
| 484 | return false; // not consuming Ctrl |
| 485 | |
| 486 | case Qt::Key_Shift: |
| 487 | snap_helper->setFilter(SnappingToolHelper::NoSnapping); |
| 488 | if (hoveringOverCurveHandle()) |
| 489 | reapplyConstraintHelpers(); |
| 490 | else if (editingInProgress()) |
| 491 | reapplyConstraintHelpers(); |
| 492 | updateStatusText(); |
| 493 | return false; // not consuming Shift |
| 494 | |
| 495 | case Qt::Key_Space: |
| 496 | if (event->modifiers().testFlag(Qt::ControlModifier)) |
| 497 | return true; |
| 498 | |
| 499 | switch_dash_points = false; |
| 500 | if (dash_points_button) |
| 501 | dash_points_button->setChecked(switch_dash_points); |
| 502 | updateStatusText(); |
| 503 | return true; |
| 504 | |
| 505 | } |
| 506 | return false; |
| 507 | } |
| 508 | |
| 509 | |
| 510 | bool EditPointTool::inputMethodEvent(QInputMethodEvent* event) |
nothing calls this directly
no test coverage detected