diff options
| author | Qudix <17361645+Qudix@users.noreply.github.com> | 2020-11-18 02:13:25 -0600 |
|---|---|---|
| committer | Qudix <17361645+Qudix@users.noreply.github.com> | 2020-11-18 02:13:25 -0600 |
| commit | 60688ecf5bc6e44795472cb22888ec5994a904a8 (patch) | |
| tree | 525358506dc5e1591191081c6d318d9100d26bcd /src | |
| parent | 3de7e93a95420a3a6b88ebae03472a4224c71674 (diff) | |
Ignore ALT-key event when ui is locked
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4e78f5dd..2bb0a237 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -6495,10 +6495,12 @@ void MainWindow::dropEvent(QDropEvent *event) void MainWindow::keyReleaseEvent(QKeyEvent *event) { - // if the menubar is hidden, pressing Alt will make it visible - if (event->key() == Qt::Key_Alt) { - if (!ui->menuBar->isVisible()) { - ui->menuBar->show(); + if (!UILocker::instance().locked()) { + // if the menubar is hidden, pressing Alt will make it visible + if (event->key() == Qt::Key_Alt) { + if (!ui->menuBar->isVisible()) { + ui->menuBar->show(); + } } } |
