mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibWeb: Remember last focus trigger in Document
We will need this to implement focus indication.
This commit is contained in:
parent
e4586abc18
commit
7016921067
Notes:
github-actions[bot]
2025-06-13 15:40:30 +00:00
Author: https://github.com/gmta
Commit: 7016921067
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5074
5 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue