mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Expose a function to clear GTextEditor selection
This commit is contained in:
committed by
Andreas Kling
parent
9a01e70ff9
commit
5c2ef01f7b
@@ -1223,6 +1223,14 @@ void GTextEditor::set_selection(const GTextRange& selection)
|
||||
update();
|
||||
}
|
||||
|
||||
void GTextEditor::clear_selection()
|
||||
{
|
||||
if (!has_selection())
|
||||
return;
|
||||
m_selection.clear();
|
||||
update();
|
||||
}
|
||||
|
||||
void GTextEditor::recompute_all_visual_lines()
|
||||
{
|
||||
int y_offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user