Browse Source

LibWeb: Mark media elements as focusable

This allows focusing media elements for keyboard control.
Timothy Flynn 2 years ago
parent
commit
c2357a059e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h

+ 2 - 0
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<void()> steps);
 
     JS::GCPtr<MediaError> error() const { return m_error; }