LibWeb: Remember last focus trigger in Document

We will need this to implement focus indication.
This commit is contained in:
Jelle Raaijmakers 2025-06-13 14:10:30 +02:00 committed by Alexander Kalenik
parent e4586abc18
commit 7016921067
Notes: github-actions[bot] 2025-06-13 15:40:30 +00:00
5 changed files with 20 additions and 4 deletions

View file

@ -31,7 +31,7 @@ void HTMLOrSVGElement<ElementBase>::focus()
return;
// 2. Run the focusing steps for this.
run_focusing_steps(static_cast<ElementBase*>(this));
run_focusing_steps(static_cast<ElementBase*>(this), nullptr, FocusTrigger::Script);
// FIXME: 3. If options["focusVisible"] is true, or does not exist but in an implementation-defined way the user agent determines it would be best to do so, then indicate focus.