LibWeb: Allow HTMLElement with contenteditable=true to be focusable

This commit is contained in:
Aliaksandr Kalenik 2024-02-23 21:29:43 +01:00 committed by Alexander Kalenik
commit 05d5e11966
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
4 changed files with 25 additions and 0 deletions

View file

@ -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) {