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_basics
reuk e4b8569b12
TextEditor: Avoid giving away keyboard focus unconditionally in destructor
While improving Android IME support (da38c1ed), text editor destructors
were updated to explicitly pass keyboard focus elsewhere.
As far as I remember, the change was intended to prevent the text input
system from trying to send input events to components while they were
being destroyed, in which case the TextInputTarget and Component bases
may be 'valid', but the data members referenced by the TextInputTarget
implementation may have been destroyed.

The motivation for removing these lines is that giving away focus and
sending a focus event can cause all components to become unfocused. This
is problematic in the case of slider text editors - pressing 'enter'
will cause the TextEditor to be destroyed, but the parent component will
fail to gain focus, so pressing 'tab' will not have any effect.
2023-07-31 19:36:32 +01:00
..
accessibility Doxygen: Fix some Doxygen issues 2023-07-17 18:24:01 +01:00
application GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
buttons GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
commands GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
components ProgressBar: Add style parameter 2023-06-22 13:07:03 +00:00
desktop Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
detail WindowUtils: Make areThereAnyAlwaysOnTopWindows() public 2023-05-04 18:42:41 +01:00
drawables Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
filebrowser FileListComponent: Allow getTooltipForRow to function as expected when overridden 2023-06-08 15:05:43 +01:00
keyboard GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
layout X11: Ask the host to manage client-initiated resizes 2023-07-24 14:20:16 +01:00
lookandfeel ProgressBar: Add style parameter 2023-06-22 13:07:03 +00:00
menus PopupMenu: Avoid dismissing menu in response to mouse events over the menu 2023-04-04 19:55:11 +01:00
misc BubbleComponent: allow customisable effects 2023-03-27 13:47:36 +00:00
mouse GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
native X11: Ask the host to manage client-initiated resizes 2023-07-24 14:20:16 +01:00
positioning Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
properties Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
widgets TextEditor: Avoid giving away keyboard focus unconditionally in destructor 2023-07-31 19:36:32 +01:00
windows X11: Ask the host to manage client-initiated resizes 2023-07-24 14:20:16 +01:00
juce_gui_basics.cpp Fixed a typo in a file name 2023-07-17 21:43:07 +01:00
juce_gui_basics.h Fixed a typo in a file name 2023-07-17 21:43:07 +01:00
juce_gui_basics.mm Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00