1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_gui_extra/code_editor
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
..
juce_CodeDocument.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_CodeDocument.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_CodeEditorComponent.cpp TextEditor: Avoid giving away keyboard focus unconditionally in destructor 2023-07-31 19:36:32 +01:00
juce_CodeEditorComponent.h TextEditor: Avoid giving away keyboard focus unconditionally in destructor 2023-07-31 19:36:32 +01:00
juce_CodeTokeniser.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_CPlusPlusCodeTokeniser.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_CPlusPlusCodeTokeniser.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_CPlusPlusCodeTokeniserFunctions.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_LuaCodeTokeniser.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_LuaCodeTokeniser.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_XMLCodeTokeniser.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_XMLCodeTokeniser.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00