menu: set keyboard shortcuts to application-wide so they continue to work in

viewerwindows
This commit is contained in:
itsmattkc
2020-04-01 19:29:41 +11:00
parent 1319d7141f
commit 920a0a27a7
+3
View File
@@ -116,6 +116,9 @@ void Menu::ConformItem(QAction* a, const QString &id, const QObject *receiver, c
if (!key.isEmpty()) {
a->setShortcut(key);
a->setProperty("keydefault", key);
// Set to application context so that ViewerWindows still trigger shortcuts
a->setShortcutContext(Qt::ApplicationShortcut);
}
if (receiver != nullptr) {