mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Qt: Allow shortcuts to work in fullscreen. Fixes #4601
This commit is contained in:
parent
4cb1ecb4dc
commit
89c136473f
1 changed files with 0 additions and 8 deletions
|
@ -172,12 +172,6 @@ void MainWindow::closeEvent(QCloseEvent *)
|
||||||
|
|
||||||
void MainWindow::keyPressEvent(QKeyEvent *e)
|
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));
|
NativeKey(KeyInput(DEVICE_ID_KEYBOARD, KeyMapRawQttoNative.find(e->key())->second, KEY_DOWN));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,7 +405,6 @@ void MainWindow::fullscreenAct_triggered()
|
||||||
{
|
{
|
||||||
if(isFullScreen()) {
|
if(isFullScreen()) {
|
||||||
g_Config.bFullScreen = false;
|
g_Config.bFullScreen = false;
|
||||||
menuBar()->setVisible(true);
|
|
||||||
showNormal();
|
showNormal();
|
||||||
SetZoom(g_Config.iInternalResolution);
|
SetZoom(g_Config.iInternalResolution);
|
||||||
InitPadLayout();
|
InitPadLayout();
|
||||||
|
@ -420,7 +413,6 @@ void MainWindow::fullscreenAct_triggered()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_Config.bFullScreen = true;
|
g_Config.bFullScreen = true;
|
||||||
menuBar()->setVisible(false);
|
|
||||||
|
|
||||||
emugl->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
emugl->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue