1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00
JUCE/modules
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
..
juce_analytics Fixed a data race in ThreadedAnalyticsDestination 2021-03-25 18:24:11 +00:00
juce_audio_basics ADSR: Fixed a test failure with small sustain lengths 2021-03-31 17:21:42 +01:00
juce_audio_devices ASIO: Update buffer size list when opening a device 2021-04-19 09:54:02 +01:00
juce_audio_formats BufferingAudioReader: Added some tests 2021-04-08 11:51:42 +01:00
juce_audio_plugin_client AU Wrapper: Fix build errors when using PreferredChannelConfigurations 2021-04-19 22:32:51 +01:00
juce_audio_processors AU Wrapper: Fix build errors when using PreferredChannelConfigurations 2021-04-19 22:32:51 +01:00
juce_audio_utils AudioProcessorPlayer: Support MIDI effect processors 2021-04-09 16:45:02 +01:00
juce_blocks_basics Fixed some compiler warnings 2021-04-16 16:44:05 +01:00
juce_box2d Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_core File: Use unit test random instance to generate unique filename 2021-04-09 10:26:28 +01:00
juce_cryptography Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_data_structures Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_dsp DSP: Fix uses of "snap to zero" preprocessor definition 2021-04-12 10:57:19 +01:00
juce_events MessageMananger: Made dispatchNextMessageOnSystemQueue() accessible by internal code 2021-04-13 16:25:04 +01:00
juce_graphics Fixed some compiler warnings 2021-04-16 16:44:05 +01:00
juce_gui_basics MainMenu: Allow components to directly handle shortcut keys which trigger menu items 2021-04-20 17:21:08 +01:00
juce_gui_extra Fixed some file permissions 2021-03-31 10:12:59 +01:00
juce_opengl Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_osc Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_product_unlocking Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_video Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
CMakeLists.txt Updated all license headers 2020-06-29 08:30:22 +01:00