Skip to content

fix: Add TextBox_Backspace_SoftKeyboard test to SamplesApp projitems - #22380

Merged
MartinZikmund merged 2 commits into
dev/mazi/backspace-wasm-skiafrom
copilot/sub-pr-22316
Jan 16, 2026
Merged

MartinZikmund merged 2 commits into
dev/mazi/backspace-wasm-skiafrom
copilot/sub-pr-22316

Conversation

Copilot AI commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #22230

PR Type:

  • 🐞 Bugfix
  • 🧪 Test infrastructure

What is the current behavior? 🤔

Android soft keyboards return keyCode 229 (IME processing) for all keys including backspace, making it impossible to detect backspace via keydown events in WebAssembly Skia TextBox.

Manual test sample exists but is not visible in SamplesApp due to missing projitems entry.

What is the new behavior? 🚀

Core Fix:

  • Uses beforeinput event to detect delete operations (inputType contains "delete")
  • Skips preventDefault() for delete operations, allowing native browser handling
  • Falls back to checking ev.key on desktop browsers where beforeinput timing differs

Test Infrastructure:

  • Added TextBox_Backspace_SoftKeyboard.xaml to UITests.Shared.projitems
  • Test now visible in SamplesApp for validation on Android browsers
  • Tests TextBox and PasswordBox with single/multi-line scenarios

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Tested on Android Chrome soft keyboard via staging site: https://unowasmprstaging.z20.web.core.windows.net/pr-22316/wasm-skia-net9/index.html


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix Android browser WASM Backspace support fix: Add TextBox_Backspace_SoftKeyboard test to SamplesApp projitems Jan 16, 2026
Copilot AI requested a review from MartinZikmund January 16, 2026 15:35
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Jan 16, 2026
@MartinZikmund
MartinZikmund marked this pull request as ready for review January 16, 2026 16:15
@MartinZikmund
MartinZikmund merged commit be81dcb into dev/mazi/backspace-wasm-skia Jan 16, 2026
7 checks passed
@MartinZikmund
MartinZikmund deleted the copilot/sub-pr-22316 branch January 16, 2026 16:15
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants