1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00
JUCE/modules/juce_gui_basics/widgets
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_ComboBox.cpp Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
juce_ComboBox.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_ImageComponent.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_ImageComponent.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_Label.cpp Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
juce_Label.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_ListBox.cpp ListBox: Rename getModel to avoid name hiding by derived classes 2023-06-08 15:26:24 +01:00
juce_ListBox.h ListBox: Rename getModel to avoid name hiding by derived classes 2023-06-08 15:26:24 +01:00
juce_ProgressBar.cpp ProgressBar: Add style parameter 2023-06-22 13:07:03 +00:00
juce_ProgressBar.h ProgressBar: Add style parameter 2023-06-22 13:07:03 +00:00
juce_Slider.cpp Slider: add getNormalisableRange() 2023-06-13 18:09:32 +01:00
juce_Slider.h Slider: add getNormalisableRange() 2023-06-13 18:09:32 +01:00
juce_TableHeaderComponent.cpp TableHeaderComponent: Correctly render column headers when graphics context is clipped 2022-12-14 11:12:31 +00:00
juce_TableHeaderComponent.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_TableListBox.cpp ListBox: Rename getModel to avoid name hiding by derived classes 2023-06-08 15:26:24 +01:00
juce_TableListBox.h ListBox: Rename getModel to avoid name hiding by derived classes 2023-06-08 15:26:24 +01:00
juce_TextEditor.cpp TextEditor: Avoid giving away keyboard focus unconditionally in destructor 2023-07-31 19:36:32 +01:00
juce_TextEditor.h TextEditor: Avoid giving away keyboard focus unconditionally in destructor 2023-07-31 19:36:32 +01:00
juce_Toolbar.cpp GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
juce_Toolbar.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_ToolbarItemComponent.cpp GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
juce_ToolbarItemComponent.h GUI Basics: Refactor juce_gui_basics file structure 2023-03-16 08:53:12 +00:00
juce_ToolbarItemFactory.h Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_ToolbarItemPalette.cpp Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
juce_ToolbarItemPalette.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00
juce_TreeView.cpp TreeView: Fix getAllVisibleItems() when only the final row of the tree fits in the viewport 2023-01-25 17:12:34 +00:00
juce_TreeView.h Accessibility: Make createAccessibilityHandler public to allow calls from derived classes 2023-02-09 17:54:18 +00:00