From c2357a059e5f1e0aa12e0e62669d40e1bfafc0c8 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 2 Jul 2023 21:39:06 -0700 Subject: [PATCH] LibWeb: Mark media elements as focusable This allows focusing media elements for keyboard control. --- Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h index 57606b9be9..0819892e2e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h @@ -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 steps); JS::GCPtr error() const { return m_error; }