mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGUI: Clear inactive selections in DisplayOnly TextEditors
This commit is contained in:
parent
bf432f8a3a
commit
bc26d1093f
Notes:
sideshowbarker
2024-07-18 21:29:49 +09:00
Author: https://github.com/thankyouverycool
Commit: bc26d1093f
Pull-request: https://github.com/SerenityOS/serenity/pull/5741
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/emanuele6
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