ladybird/Tests/LibWeb/Text/expected/input-method-insert-text.txt
sideshowbarker a82c7939d9 LibWeb+UI/AppKit: Implement macOS IME support
This makes macOS IME input in web content work as expected.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/9712
2026-06-08 10:23:14 +09:00

22 lines
953 B
Text

input.value after IME commit: "abcdef"
input event on <input>: {"inputType":"insertText","data":"def"}
textarea.value after IME commit: "xyzyyy"
input event on <textarea>: {"inputType":"insertText","data":"yyy"}
editable.textContent after IME commit: "qwerty"
input event on contenteditable: {"inputType":"insertText","data":"rty"}
unfocused commit threw: false
readonly value unchanged: true
focused-input caret rect non-null: true
focused-input caret rect has positive height: true
unfocused caret rect: null
empty-input caret rect non-null: true
empty-input caret rect has positive height: true
after first preedit keystroke: "n"
after extending preedit: "ni"
after candidate replaces preedit: "你"
after commit: "你"
after second composition commit: "你好"
after unmark keeps preedit: "你好?"
after abort clears preedit: "你好?"
after abort, fresh preedit at moved caret: "你z好?"
caret rect is viewport-relative (moves with scroll): true