mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
avoid that another action triggers while aborting operation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user