mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 23:59:53 +00:00
LibWeb: Port document.execCommand and InputEvent to UTF-16
This commit is contained in:
parent
49467d0583
commit
2da615ed31
Notes:
github-actions[bot]
2025-07-25 22:41:42 +00:00
Author: https://github.com/trflynn89
Commit: 2da615ed31
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5608
Reviewed-by: https://github.com/gmta ✅
8 changed files with 25 additions and 24 deletions
|
@ -43,7 +43,7 @@ void EditingHostManager::handle_insert(Utf16String const& value)
|
|||
// once or in quick succession, this specification does not define whether it is treated as one insertion or several
|
||||
// consecutive insertions.
|
||||
|
||||
auto editing_result = m_document->exec_command(Editing::CommandNames::insertText, false, value.to_utf8_but_should_be_ported_to_utf16());
|
||||
auto editing_result = m_document->exec_command(Editing::CommandNames::insertText, false, value);
|
||||
if (editing_result.is_exception())
|
||||
dbgln("handle_insert(): editing resulted in exception: {}", editing_result.exception());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue