1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00

LibGUI: Clear inactive selections in DisplayOnly TextEditors

This commit is contained in:
thankyouverycool 2021-03-10 11:57:59 -05:00 committed by Andreas Kling
parent bf432f8a3a
commit bc26d1093f

View file

@ -1133,6 +1133,8 @@ void TextEditor::focusin_event(FocusEvent& event)
void TextEditor::focusout_event(FocusEvent&)
{
if (is_displayonly() && has_selection())
m_selection.clear();
stop_timer();
if (on_focusout)
on_focusout();