LibWeb: Don't move focus when setting input value

This commit is contained in:
Gingeh 2024-09-10 11:28:44 +10:00 committed by Jelle Raaijmakers
commit 1d9c404b8c
Notes: github-actions[bot] 2024-09-12 09:46:32 +00:00
7 changed files with 59 additions and 26 deletions

View file

@ -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()