mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
LibWeb: Don't handle media player key events if any modifier is pressed
This commit is contained in:
parent
63231fd276
commit
a56a2faf51
Notes:
github-actions[bot]
2024-09-04 14:00:43 +00:00
Author: https://github.com/tcl3
Commit: a56a2faf51
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1273
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 6 additions and 3 deletions
|
@ -890,7 +890,7 @@ bool EventHandler::handle_keydown(UIEvents::KeyCode key, u32 modifiers, u32 code
|
|||
|
||||
if (auto* element = m_navigable->active_document()->focused_element(); is<HTML::HTMLMediaElement>(element)) {
|
||||
auto& media_element = static_cast<HTML::HTMLMediaElement&>(*element);
|
||||
if (media_element.handle_keydown({}, key).release_value_but_fixme_should_propagate_errors())
|
||||
if (media_element.handle_keydown({}, key, modifiers).release_value_but_fixme_should_propagate_errors())
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue