LibWeb: Propagate input/textarea selection update to document selection

Calling `.setSelectionRange()` or `.select()` now updates the document
selection as well, visualizing the text selection.
This commit is contained in:
Jelle Raaijmakers 2024-08-26 14:08:40 +02:00 committed by Tim Flynn
commit 732e3fa82f
Notes: github-actions[bot] 2024-08-27 11:12:49 +00:00
6 changed files with 42 additions and 7 deletions

View file

@ -114,6 +114,9 @@ public:
String selection_direction_binding() const;
void set_selection_direction_binding(String direction);
protected:
void selection_was_changed() override;
private:
HTMLTextAreaElement(DOM::Document&, DOM::QualifiedName);