1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00
JUCE/modules/juce_gui_basics/native
reuk 1e606ddb32
MainMenu: Allow components to directly handle shortcut keys which trigger menu items
This fixes a regression introduced by
6e9261ea66 which meant that components
were not given a chance to respond to shortcut keypresses if those same
keypresses were registered for a menu item. This resulted in behaviour
where shortcuts such as 'cmd+c' would not be passed to a focused
TextEditor if a different command with the same shortcut was registered
in the main menu.

With this change in place, we now check whether the menu item's shortcut
keys match the current event's pressed keys. If the keypresses match, we
can assume that the event was triggered by the keyboard, and dispatch
the keypresses to the ComponentPeer. If the keypresses do not match,
then the menu item was likely selected using space/return, or by
clicking, in which case the event is dispatched directly to the
ApplicationCommandManager.
2021-04-20 17:21:08 +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 X11: Fix drag-n-drop bug in the XWindowSystem class 2021-04-14 12:36:48 +01:00
juce_android_ContentSharer.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_android_FileChooser.cpp FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00: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 Use RAII for CFTypes 2021-03-25 15:48:35 +00:00
juce_ios_UIViewComponentPeer.mm UIViewComponentPeer: Fix issue where heavyweight windows could "drift" when resized slowly 2021-03-25 11:51:28 +00:00
juce_ios_Windowing.mm iOS: Avoid unnecessary numeric conversion 2021-03-15 19:23:01 +00:00
juce_linux_FileChooser.cpp FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_linux_Windowing.cpp VST3: Fix issue where Ardour would repeatedly try to resize editors 2021-03-11 16:51:35 +00:00
juce_mac_FileChooser.mm FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_mac_MainMenu.mm MainMenu: Allow components to directly handle shortcut keys which trigger menu items 2021-04-20 17:21:08 +01:00
juce_mac_MouseCursor.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_mac_NSViewComponentPeer.mm Use RAII for CFTypes 2021-03-25 15:48:35 +00:00
juce_mac_Windowing.mm macOS: Removed static display change callback 2021-03-29 09:20:16 +01:00
juce_MultiTouchMapper.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_win32_DragAndDrop.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_win32_FileChooser.cpp MessageMananger: Made dispatchNextMessageOnSystemQueue() accessible by internal code 2021-04-13 16:25:04 +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: Fixed a build error and some unreachable code warnings when JUCE_WIN_PER_MONITOR_DPI_AWARE=0 2021-03-05 18:40:03 +00:00