summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/vnc/vncwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/vnc/vncwindow.cpp b/src/client/vnc/vncwindow.cpp
index a9d85f4..f7b6a3e 100644
--- a/src/client/vnc/vncwindow.cpp
+++ b/src/client/vnc/vncwindow.cpp
@@ -385,7 +385,7 @@ void VncWindow::paintEvent(QPaintEvent *event)
*/
void VncWindow::keyReleaseEvent(QKeyEvent* event)
{
- if (event->modifiers() == 0 && event->key() == Qt::Key_Escape && clientApp->isConnectedToLocalManager()) {
+ if (event->modifiers() == 0 && clientApp->isConnectedToLocalManager()) {
this->close();
} else {
QWidget::keyReleaseEvent(event);