mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Allow HTMLElement with contenteditable=true to be focusable
This commit is contained in:
parent
bcb68eb632
commit
05d5e11966
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 05d5e11966
Pull-request: https://github.com/SerenityOS/serenity/pull/23320
4 changed files with 25 additions and 0 deletions
|
@ -93,6 +93,11 @@ bool HTMLElement::is_editable() const
|
|||
}
|
||||
}
|
||||
|
||||
bool HTMLElement::is_focusable() const
|
||||
{
|
||||
return m_content_editable_state == ContentEditableState::True;
|
||||
}
|
||||
|
||||
StringView HTMLElement::content_editable() const
|
||||
{
|
||||
switch (m_content_editable_state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue