From bb1ac54c322dd3b8ed2d6c7127de2b6d29149002 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Tue, 14 Oct 2014 10:42:01 -0400 Subject: [PATCH] Fix: Press Esc: Do not close output window --- OutputGLWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OutputGLWindow.cpp b/OutputGLWindow.cpp index a71a418..e9ce620 100644 --- a/OutputGLWindow.cpp +++ b/OutputGLWindow.cpp @@ -52,8 +52,14 @@ void OutputGLWindow::keyPressEvent(QKeyEvent *event) setFullScreen(false); emit fullScreenToggled(false); } + else if (event->key() == Qt::Key_Escape) + { + // pass + } else + { QDialog::keyPressEvent(event); + } }