fix: enable mnemonics for menu hotkeys on macOS (#6778)
Reviewed-by: pajlada <rasmus.karlsson+github@pajlada.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
- Minor: Added action to reset `/watching`. (#6759)
|
||||
- Minor: Removed messaging about running flatpak. This is already apparent in the newer Flatpak runtimes. (#6768)
|
||||
- Minor: Add `/(un)monitor` and `/(un)restrict` commands for moderators. (#6750)
|
||||
- Bugfix: Fixed context menu hotkeys not working on macOS. (#6778)
|
||||
- Bugfix: Moderation checks now include the lead moderator badge. (#6642)
|
||||
- Bugfix: Fixed lead moderator badges not being filtered by the `Channel` badge setting. (#6665)
|
||||
- Bugfix: Expose the "Extra extension IDs" setting on non-Windows systems too. (#6509)
|
||||
|
||||
@@ -42,6 +42,10 @@
|
||||
# include "corefoundation/CFBundle.h"
|
||||
#endif
|
||||
|
||||
// Forward declaration (Qt doesn't declare this in headers)
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
extern void qt_set_sequence_auto_mnemonic(bool b);
|
||||
|
||||
namespace chatterino {
|
||||
namespace {
|
||||
void installCustomPalette()
|
||||
@@ -101,6 +105,9 @@ void initQt()
|
||||
// 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);
|
||||
|
||||
// Enable mnemonics (menu hotkeys) on macOS - they are disabled by default
|
||||
qt_set_sequence_auto_mnemonic(true);
|
||||
#endif
|
||||
|
||||
installCustomPalette();
|
||||
|
||||
Reference in New Issue
Block a user