fix(android): delete characters with KEYCODE_DEL when typing backspaces

Merged
TW
1d ago
+174-1

Fixes #4203

Cause. When typing backspace sequences (), Android's text input route previously dispatched them via the test IME helper (which committed them as literal  characters) or failed on adb shell fallback due to control characters being rejected.

Fix. Detect backspace sequences in typeAndroid and dispatch them as KEYCODE_DEL keyevents across all input targets, deleting characters directly. Added a patch changeset.

Test. Added unit tests verifying backspace sequences dispatch KEYCODE_DEL keyevents both with and without the active test IME helper. Scoped tests, oxlint, oxfmt, and tsc are clean.

This change was prepared with the assistance of an AI coding agent (GPT-6-astra).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.