Skip to content

fix: Backspace handling - #22793

Merged
MartinZikmund merged 5 commits into
masterfrom
dev/mazi/backspacewasmfix
Mar 9, 2026
Merged

MartinZikmund merged 5 commits into
masterfrom
dev/mazi/backspacewasmfix

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #

PR Type:

What is the current behavior? 🤔

What is the new behavior? 🚀

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Copilot AI review requested due to automatic review settings March 6, 2026 11:12
@github-actions github-actions Bot added the platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform label Mar 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the WebAssembly Browser “invisible textbox” input plumbing to better handle soft-keyboard behaviors (notably on Android), ensuring text entry/navigation works when key events aren’t reliably identifiable by managed code.

Changes:

  • Treat both beforeinput types insertLineBreak and insertParagraph as Enter when the TextBox does not accept returns.
  • For Android soft keyboards (keyCode 229 / “Unidentified”), stop propagating the keydown to the document-level keyboard source so the browser can handle text changes natively (synced via oninput).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@ajpinedam ajpinedam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Also, Copilot comments seems to be valid

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/backspacewasmfix branch from 9688af3 to c02da6c Compare March 9, 2026 12:39
Copilot AI review requested due to automatic review settings March 9, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund enabled auto-merge March 9, 2026 13:04

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

@MartinZikmund I've opened a new pull request, #22804, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 9, 2026 13:37
refactor: Replace magic number 229 with ANDROID_IME_KEYCODE constant in BrowserInvisibleTextBoxViewExtension
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MartinZikmund
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 200545 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund merged commit 5f0f82c into master Mar 9, 2026
41 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/backspacewasmfix branch March 9, 2026 16:59
@MartinZikmund MartinZikmund linked an issue Mar 10, 2026 that may be closed by this pull request
1 of 2 tasks
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WASM Skia] Backspace key does not work (TextBox, PasswordBox)

6 participants