1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00
JUCE/modules/juce_gui_basics
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
..
application Updated all license headers 2020-06-29 08:30:22 +01:00
buttons Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
commands XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
components Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
desktop Displays: Added floating-point physical<->logical coordinate conversion methods 2021-02-19 19:07:12 +00:00
drawables CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
filebrowser Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
keyboard Updated all license headers 2020-06-29 08:30:22 +01:00
layout Update SidePanel visibility when shown/hidden and set always on top 2021-01-29 15:40:12 +00:00
lookandfeel Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
menus PopupMenu: Add option to specify initially-selected menu item 2021-03-10 16:14:42 +00:00
misc juce6: Update some referenes to JUCE 5 in docstrings 2020-07-01 10:00:43 +01:00
mouse Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
native MainMenu: Allow components to directly handle shortcut keys which trigger menu items 2021-04-20 17:21:08 +01:00
positioning CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
properties XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
widgets TextEditor: Fixed a bug updating the text holder size for single-line editors 2021-04-07 14:12:11 +01:00
windows Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.cpp Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.h Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.mm Updated all license headers 2020-06-29 08:30:22 +01:00