mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Change Editing::editing_host_of_node() to Node::editing_host()
No functional changes.
This commit is contained in:
parent
3f5bc023e2
commit
0cab272f7f
Notes:
github-actions[bot]
2025-08-01 08:10:53 +00:00
Author: https://github.com/gmta
Commit: 0cab272f7f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5666
6 changed files with 36 additions and 36 deletions
|
|
@ -1319,7 +1319,7 @@ EventResult EventHandler::handle_keydown(UIEvents::KeyCode key, u32 modifiers, u
|
|||
|
||||
// If the editing host is contenteditable="plaintext-only", we force a line break.
|
||||
if (focused_element) {
|
||||
if (auto editing_host = Editing::editing_host_of_node(*focused_element); editing_host
|
||||
if (auto editing_host = focused_element->editing_host(); editing_host
|
||||
&& as<HTML::HTMLElement>(*editing_host).content_editable_state() == HTML::ContentEditableState::PlaintextOnly)
|
||||
input_type = UIEvents::InputTypes::insertLineBreak;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue