mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Fix tofu in textarea newlines on MacOS
Do not insert the codepoint from the platform event. Always insert 10
This commit is contained in:
committed by
Shannon Booth
parent
2a8b83a568
commit
e39f73f978
Notes:
github-actions[bot]
2025-12-29 19:00:57 +00:00
Author: https://github.com/jonbgamble 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e39f73f9788 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7229 Reviewed-by: https://github.com/shannonbooth ✅
@@ -437,6 +437,12 @@ void HTMLTextAreaElement::did_edit_text_node()
|
||||
update_placeholder_visibility();
|
||||
}
|
||||
|
||||
EventResult HTMLTextAreaElement::handle_return_key(FlyString const&)
|
||||
{
|
||||
handle_insert(Utf16String::from_code_point(0x0A)); // Avoid the platform codepoint
|
||||
return EventResult::Handled;
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::queue_firing_input_event()
|
||||
{
|
||||
queue_an_element_task(HTML::Task::Source::UserInteraction, [this]() {
|
||||
|
||||
Reference in New Issue
Block a user