Force shortcuts to show in context menus on macOS (#4722)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2023-07-22 13:36:52 +02:00
committed by GitHub
parent ae8b2adcdd
commit 0e83367a2b
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -86,6 +86,13 @@ namespace {
QApplication::setWindowIcon(QIcon(":/icon.ico"));
#endif
#ifdef Q_OS_MAC
// On the Mac/Cocoa platform this attribute is enabled by default
// We override it to ensure shortcuts show in context menus on that platform
QApplication::setAttribute(Qt::AA_DontShowShortcutsInContextMenus,
false);
#endif
installCustomPalette();
}