mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +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
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