mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Remove layout node check in EventHandler::handle_keydown()
This function does not rely on having a layout node.
This commit is contained in:
parent
0b403d30d7
commit
dc1a646764
Notes:
github-actions[bot]
2024-10-04 05:08:14 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/dc1a646764f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1616 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling
1 changed files with 0 additions and 2 deletions
|
@ -844,8 +844,6 @@ EventResult EventHandler::handle_keydown(UIEvents::KeyCode key, u32 modifiers, u
|
|||
return EventResult::Dropped;
|
||||
|
||||
JS::NonnullGCPtr<DOM::Document> document = *m_navigable->active_document();
|
||||
if (!document->layout_node())
|
||||
return EventResult::Dropped;
|
||||
|
||||
if (key == UIEvents::KeyCode::Key_Tab) {
|
||||
if (modifiers & UIEvents::KeyModifier::Mod_Shift)
|
||||
|
|
Loading…
Reference in a new issue