Definitively resolve the bug with ESC

This commit is contained in:
baydam
2014-10-29 21:06:58 +00:00
parent 9143e309f7
commit ed9cca4ded
5 changed files with 19 additions and 19 deletions
+2
View File
@@ -323,6 +323,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
break;
}
}
else if (keyEvent->key() == Qt::Key_Escape) outputWindow->setFullScreen(false);
eventKey = false;
return eventKey;
@@ -1051,6 +1052,7 @@ void MainWindow::createLayout()
outputWindow = new OutputGLWindow(this, this, sourceCanvas);
outputWindow->setVisible(true);
outputWindow->installEventFilter(destinationCanvas);
outputWindow->installEventFilter(this);
// Source changed -> change destination