1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_events
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
..
broadcasters Updated all license headers 2020-04-23 17:30:39 +01:00
interprocess IPC: Prevent disconnection while a read is in progress 2020-11-16 20:13:46 +00:00
messages Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0 2021-06-30 13:01:14 +01:00
native Mac MainMenu: Allow commands without modifiers to be passed to peer 2021-07-14 14:49:05 +01:00
timers Made the assertion in the Timer destructor slightly less strict 2020-11-13 18:16:04 +00:00
juce_events.cpp Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_events.h Update the minimum C++ standard to C++14 2021-06-24 16:09:48 +01:00
juce_events.mm Updated all license headers 2020-04-23 17:30:39 +01:00