mirror of
https://github.com/lexmount/moli.git
synced 2026-11-25 00:02:32 +00:00
Dispatch trusted clipboard events for native copy, cut, and paste shortcuts, then apply text-control edits through cancelable, typed InputEvents. Resolve focus and selection after event listeners and preserve UTF-16 selections, readonly and password behavior, maxlength, and single-line normalization. Keep paste data read-only and retire clipboard DataTransfer objects after dispatch. Use intrinsic event constructors even when page scripts replace the globals. Add seven regression tests for editing, cancellation, focus changes, and clipboard data lifetime. Validate 38 native CDP scenarios against Chromium and 63 WPT cases; textEditCommands.html now passes with no regressions in the remaining cases.