LibWeb: Mark media elements as focusable

This allows focusing media elements for keyboard control.
This commit is contained in:
Timothy Flynn 2023-07-02 21:39:06 -07:00 committed by Andreas Kling
parent 3793b7c6bd
commit c2357a059e
Notes: sideshowbarker 2024-07-17 01:51:00 +09:00

View file

@ -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; }