mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibGUI: Update TextEditor after triple-click to select (#4897)
Previously, it was "relying" on the cursor blink timer to update the visual selection. This caused some delay after the whole line was selected by triple-clicking specifically the last word in a line. Now, the widget is updated after triple-clicking.
This commit is contained in:
parent
603147f47a
commit
c7fc9d185d
Notes:
sideshowbarker
2024-07-18 23:56:55 +09:00
Author: https://github.com/campital 🔰
Commit: c7fc9d185d
Pull-request: https://github.com/SerenityOS/serenity/pull/4897
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,8 @@ void TextEditor::mousedown_event(MouseEvent& event)
|
|||
|
||||
m_selection.set(start, end);
|
||||
set_cursor(end);
|
||||
update();
|
||||
did_update_selection();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue