mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
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:
committed by
Tim Flynn
parent
badcdcacf5
commit
732e3fa82f
Notes:
github-actions[bot]
2024-08-27 11:12:49 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/732e3fa82f2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1193 Reviewed-by: https://github.com/trflynn89 ✅
@@ -199,6 +199,9 @@ public:
|
||||
bool select_applies() const;
|
||||
bool selection_or_range_applies() const;
|
||||
|
||||
protected:
|
||||
void selection_was_changed() override;
|
||||
|
||||
private:
|
||||
HTMLInputElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user