From 89c136473f0ad18d9cc299bb43b9bcfbc66bb6f6 Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 21 Nov 2013 12:45:45 +1000 Subject: [PATCH] Qt: Allow shortcuts to work in fullscreen. Fixes #4601 --- Qt/mainwindow.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index 201f9ef180..89fe4f1b86 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -172,12 +172,6 @@ void MainWindow::closeEvent(QCloseEvent *) void MainWindow::keyPressEvent(QKeyEvent *e) { - if(isFullScreen() && e->key() == Qt::Key_F11) - { - fullscreenAct_triggered(); - return; - } - NativeKey(KeyInput(DEVICE_ID_KEYBOARD, KeyMapRawQttoNative.find(e->key())->second, KEY_DOWN)); } @@ -411,7 +405,6 @@ void MainWindow::fullscreenAct_triggered() { if(isFullScreen()) { g_Config.bFullScreen = false; - menuBar()->setVisible(true); showNormal(); SetZoom(g_Config.iInternalResolution); InitPadLayout(); @@ -420,7 +413,6 @@ void MainWindow::fullscreenAct_triggered() } else { g_Config.bFullScreen = true; - menuBar()->setVisible(false); emugl->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);