diff --git a/CHANGELOG.md b/CHANGELOG.md index ac058e16..b54a76f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/RunGui.cpp b/src/RunGui.cpp index 66ed31f7..07ba0d61 100644 --- a/src/RunGui.cpp +++ b/src/RunGui.cpp @@ -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();