summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-04 18:33:23 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-04 18:33:23 -0400
commit479150a619bbfdfa8d7527e0fee28daecd22724c (patch)
tree585c41ce24034bdb39060461d65c18a488996780 /src/mainwindow.cpp
parent369408eed067c1ca76759ef22ea5dfc4facdf082 (diff)
show the main menu when releasing alt instead of pressing, less annoying to take screenshots with alt+printscreen without having the menu pop up
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 60a86b95..bf357c20 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -6880,7 +6880,7 @@ void MainWindow::dropEvent(QDropEvent *event)
event->accept();
}
-void MainWindow::keyPressEvent(QKeyEvent *event)
+void MainWindow::keyReleaseEvent(QKeyEvent *event)
{
// if the menubar is hidden, pressing Alt will make it visible
if (event->key() == Qt::Key_Alt) {
@@ -6890,7 +6890,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
}
}
- QMainWindow::keyPressEvent(event);
+ QMainWindow::keyReleaseEvent(event);
}
void MainWindow::on_clickBlankButton_clicked()