mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Inverted order in which fullscreen and escape key are called (escape only works in fullscreen).
This commit is contained in:
+2
-2
@@ -65,9 +65,9 @@ void OutputGLWindow::closeEvent(QCloseEvent *event)
|
||||
void OutputGLWindow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
// Escape from full screen mode.
|
||||
if (event->key() == Qt::Key_Escape)
|
||||
if (isFullScreen())
|
||||
{
|
||||
if (isFullScreen())
|
||||
if (event->key() == Qt::Key_Escape)
|
||||
{
|
||||
setFullScreen(false);
|
||||
emit fullScreenToggled(false);
|
||||
|
||||
Reference in New Issue
Block a user