1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00
JUCE/modules/juce_gui_extra
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
..
code_editor Accessibility: Set caret position when passed an empty range selection in CodeEditorComponent and TextEditor AccessibilityTextInterface implementations 2021-06-11 13:48:07 +01:00
documents FileBasedDocument: Fix use-after-move bug 2021-07-05 12:21:36 +01:00
embedding Windows: Fix clang/gnu compiler warnings 2021-06-03 17:30:44 +01:00
misc 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
juce_gui_extra.cpp Update the minimum C++ standard to C++14 2021-06-24 16:09:48 +01:00
juce_gui_extra.h Update the minimum C++ standard to C++14 2021-06-24 16:09:48 +01:00
juce_gui_extra.mm Updated all license headers 2020-06-29 08:30:22 +01:00