mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Don't move focus when setting input value
This commit is contained in:
parent
d29797f118
commit
1d9c404b8c
Notes:
github-actions[bot]
2024-09-12 09:46:32 +00:00
Author: https://github.com/Gingeh
Commit: 1d9c404b8c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1355
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
7 changed files with 59 additions and 26 deletions
|
@ -1215,7 +1215,7 @@ void EventHandler::update_selection_range_for_input_or_textarea()
|
|||
target = static_cast<HTML::HTMLTextAreaElement&>(*shadow_host);
|
||||
|
||||
if (target.has_value())
|
||||
target.value().set_the_selection_range(selection_start, selection_end, direction);
|
||||
target.value().set_the_selection_range(selection_start, selection_end, direction, HTML::SelectionSource::UI);
|
||||
}
|
||||
|
||||
Unicode::Segmenter& EventHandler::word_segmenter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue