mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibWeb: Mark media elements as focusable
This allows focusing media elements for keyboard control.
This commit is contained in:
parent
3793b7c6bd
commit
c2357a059e
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ class HTMLMediaElement : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLMediaElement() override;
|
||||
|
||||
virtual bool is_focusable() const override { return true; }
|
||||
|
||||
void queue_a_media_element_task(JS::SafeFunction<void()> steps);
|
||||
|
||||
JS::GCPtr<MediaError> error() const { return m_error; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue