1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00
JUCE/modules/juce_events/native
reuk 85226c33d4
Mac MainMenu: Allow commands without modifiers to be passed to peer
Ideally, we want to pass shortcut keys to the component to handle, and
only fall back to invoking a menu item if the component was unable to
handle the keyboard event, or if the action was triggered by
clicking/selecting an item in the menu itself. The old implementation
tried to work out whether the action was triggered by a shortcut by
checking the event's characters and modifiers. This method was
inaccurate, because some shortcuts (such as arrow keys) may add
unexpected numpad/function modifier flags.

We now try handling shortcut keys directly in the peer, and pass events
up to the superclass (which will forward them to the main menu) if the
event could not be handled.

This commit also adjusts some Objective-C method signatures to use the
correct string encoding for the BOOL type.
2021-07-14 14:49:05 +01:00
..
juce_android_Messaging.cpp MessageMananger: Made dispatchNextMessageOnSystemQueue() accessible by internal code 2021-04-13 16:25:04 +01:00
juce_ios_MessageManager.mm Updated all license headers 2020-04-23 17:30:39 +01:00
juce_linux_EventLoop.h Normalised all whitespace before args in std::function 2020-06-05 09:37:49 +01:00
juce_linux_Messaging.cpp MessageMananger: Made dispatchNextMessageOnSystemQueue() accessible by internal code 2021-04-13 16:25:04 +01:00
juce_mac_MessageManager.mm Mac MainMenu: Allow commands without modifiers to be passed to peer 2021-07-14 14:49:05 +01:00
juce_osx_MessageQueue.h Use RAII for CFTypes 2021-03-25 15:48:35 +00:00
juce_win32_HiddenMessageWindow.h Windows: Fix clang/gnu compiler warnings 2021-06-03 17:30:44 +01:00
juce_win32_Messaging.cpp Windows: Fix warnings when building with clang in 64-bit mode 2021-06-30 17:03:38 +01:00
juce_win32_WinRTWrapper.cpp Windows: Removed WinRT::ComSmartPtr and use existing class instead 2021-01-28 11:26:13 +00:00
juce_win32_WinRTWrapper.h Windows: Removed WinRT::ComSmartPtr and use existing class instead 2021-01-28 11:26:13 +00:00