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:
parent
bf432f8a3a
commit
bc26d1093f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue