mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibWeb: Add Document.hasFocus() stub
This always returns true for now. A proper implementation needs to check if the document is in the focused widget within an active window.
This commit is contained in:
parent
90a8744823
commit
545ec334f0
3 changed files with 10 additions and 0 deletions
|
@ -1147,4 +1147,10 @@ NonnullRefPtr<DOMImplementation> Document::implementation() const
|
|||
return *m_implementation;
|
||||
}
|
||||
|
||||
bool Document::has_focus() const
|
||||
{
|
||||
// FIXME: Return whether we actually have focus.
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue