From 94fb4a20e3dfa34ff655b7f380916dbf71a4572e Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 16 Jun 2021 17:17:44 +0100 Subject: [PATCH] Restored previous behaviour of Label::focusGained() to just show editor on tab focus change --- modules/juce_gui_basics/widgets/juce_Label.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/widgets/juce_Label.cpp b/modules/juce_gui_basics/widgets/juce_Label.cpp index 4c5d53f43c..569a30163f 100644 --- a/modules/juce_gui_basics/widgets/juce_Label.cpp +++ b/modules/juce_gui_basics/widgets/juce_Label.cpp @@ -374,8 +374,7 @@ void Label::focusGained (FocusChangeType cause) { if (editSingleClick && isEnabled() - && (cause == focusChangedByTabKey - || (cause == focusChangedDirectly && ! isCurrentlyModal()))) + && cause == focusChangedByTabKey) { showEditor(); }