LibWeb: Don't propagate key events that are handled by the media player

If a key is pressed when the media player is in focus, which causes the
media player to perform some action, that key event is no longer
propagated further.
This commit is contained in:
Tim Ledbetter 2024-09-03 14:21:33 +01:00 committed by Tim Flynn
commit 63231fd276
Notes: github-actions[bot] 2024-09-04 14:00:50 +00:00
3 changed files with 6 additions and 5 deletions

View file

@ -109,7 +109,7 @@ public:
JS::NonnullGCPtr<TextTrack> add_text_track(Bindings::TextTrackKind kind, String const& label, String const& language);
WebIDL::ExceptionOr<void> handle_keydown(Badge<Web::EventHandler>, UIEvents::KeyCode);
WebIDL::ExceptionOr<bool> handle_keydown(Badge<Web::EventHandler>, UIEvents::KeyCode);
enum class MouseTrackingComponent {
Timeline,