Fix the following issues:

a) paste
- conductor does not move
- pressing escape does not abort
- pressing anything during the process crashes the program instead of aborting
b) similar issue with the escape not working fixed for graphics items, texxt fields (and probably others)
This commit is contained in:
Andre Rummler
2026-09-17 11:34:25 +02:00
parent ff3c2e0916
commit 923723a9de
6 changed files with 31 additions and 11 deletions
+4
View File
@@ -733,6 +733,10 @@ void DiagramView::keyPressEvent(QKeyEvent *e)
//way off the canvas for someone working without a mouse.
//Escape steps back out: first it drops the selection, then it
//hands focus to the next widget.
if (m_diagram && m_diagram->hasEventInterface()) {
QGraphicsView::keyPressEvent(e); // let the active tool see it
return;
}
if (m_diagram && !m_diagram->selectedItems().isEmpty()) {
m_diagram->clearSelection();
} else {