It turns out that the previous implementation, based on installing an event filter in every QAction instance, does not work on macOS, likely due to a Qt bug: #10929.
Attempt to work around this by using a different implementation of the same idea, by reacting to ShortcutOverride events in the MainWindow object.
Fixes #10929 – hopefully.
Testing strategy
Tested manually on Linux/Wayland. Also ran all tests, including GUI tests.
Type of change
✅ Bug fix (non-breaking change that fixes an issue)
It turns out that the previous implementation, based on installing an event filter in every
QAction
instance, does not work on macOS, likely due to a Qt bug: #10929.Attempt to work around this by using a different implementation of the same idea, by reacting to
ShortcutOverride
events in theMainWindow
object.Fixes #10929 – hopefully.
Testing strategy
Tested manually on Linux/Wayland. Also ran all tests, including GUI tests.
Type of change