avoid that another action triggers while aborting operation

This commit is contained in:
Andre Rummler
2026-09-17 13:25:17 +02:00
parent 923723a9de
commit 863ac5f0ae
4 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -733,7 +733,7 @@ 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()) {
if (m_diagram && m_diagram->eventInterfaceIsRunning()) {
QGraphicsView::keyPressEvent(e); // let the active tool see it
return;
}