1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00
JUCE/modules/juce_gui_basics/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
..
accessibility macOS Accessibility: Fixed an incorrect deployment target check 2021-07-06 16:02:19 +01:00
java/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
javaopt/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
x11 AudioProcessorGraph: Improve performance when building large graphs 2021-07-08 10:47:36 +01:00
juce_android_ContentSharer.cpp Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
juce_android_FileChooser.cpp Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
juce_android_Windowing.cpp Removed Displays const_casts from ComponentPeer implementations 2021-02-08 14:38:09 +00:00
juce_common_MimeTypes.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_ios_ContentSharer.cpp Use RAII for CFTypes 2021-03-25 15:48:35 +00:00
juce_ios_FileChooser.mm MacOS: Fix API deprecations in macOS 12.0 and iOS 15.0 2021-06-10 15:20:39 +01:00
juce_ios_UIViewComponentPeer.mm MacOS: Fix API deprecations in macOS 12.0 and iOS 15.0 2021-06-10 15:20:39 +01:00
juce_ios_Windowing.mm iOS: Avoid unnecessary numeric conversion 2021-03-15 19:23:01 +00:00
juce_linux_FileChooser.cpp FileChooser: Allow multiple directory selection on Linux/Zenity 2021-05-24 19:41:11 +01:00
juce_linux_Windowing.cpp Linux: Fix maximise when not using native titlebar 2021-07-06 10:26:14 +02:00
juce_mac_FileChooser.mm MacOS: Fix API deprecations in macOS 12.0 and iOS 15.0 2021-06-10 15:20:39 +01:00
juce_mac_MainMenu.mm Mac MainMenu: Allow commands without modifiers to be passed to peer 2021-07-14 14:49:05 +01:00
juce_mac_MouseCursor.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_mac_NSViewComponentPeer.mm Mac MainMenu: Allow commands without modifiers to be passed to peer 2021-07-14 14:49:05 +01:00
juce_mac_Windowing.mm macOS Windowing: Revert unnecessary change which produced incorrect monitor bounds 2021-04-29 17:43:31 +01:00
juce_MultiTouchMapper.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_win32_DragAndDrop.cpp Windows: Fix and suppress some analysis warnings 2021-05-26 15:34:26 +01:00
juce_win32_FileChooser.cpp Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
juce_win32_ScopedThreadDPIAwarenessSetter.h Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds 2021-03-02 15:56:10 +00:00
juce_win32_Windowing.cpp Windows: Use ScopedThreadDPIAwarenessSetter in keyboard hooks to set correct thread DPI awareness 2021-06-10 18:14:50 +01:00