mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/c2357a059e Pull-request: https://github.com/SerenityOS/serenity/pull/19771
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…
Reference in a new issue