Repository navigation
fix(tabview): Keep arrow-key focus move in Release - #24564
Conversation
|
Claude finished @MartinZikmund's task in 2m 5s —— View job Review complete ✅
Verdict: Ship. No inline findings — this is a clean, correctly-scoped root-cause fix. Findings by severity: 0 blocking, 0 non-blocking. What I verified:
Note: this review was code-inspection only (no local build/test run was performed as part of this task). |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The runtime test needs the required issue link and guaranteed test-content cleanup.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Fixes Release-mode TabView arrow-key focus navigation and adds regression coverage.
Changes:
- Moves
Focus()outsideMUX_ASSERTand returns its result. - Updates the MUX reference to 2.5.1.
- Adds runtime focus-navigation coverage.
| File | Summary |
|---|---|
src/Uno.UI/UI/Xaml/Controls/TabView/TabView.cs |
Corrects Release focus movement. |
src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_TabView.cs |
Adds regression coverage; requires issue attribution and cleanup of WindowHelper.WindowContent. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24564/wasm-skia-net9/index.html |
|
The build 234651 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 1m 46s —— View job Review complete ✅
Verdict: Ship. No inline findings — this remains a clean, correctly-scoped root-cause fix. Findings by severity: 0 blocking, 0 non-blocking. What changed since the last automated pass: the two Copilot review comments (missing What I re-verified on this pass:
Note: this review was code-inspection only (no local build/test run performed in this session). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24564/wasm-skia-net9/index.html |
|
The build 234732 found UI Test snapshots differences: Details
|
|
|
d66ac62 to
92761aa
Compare
|
Claude finished @MartinZikmund's task in 1m 8s —— View job Review complete ✅
Verdict: Ship. No inline findings — this remains a clean, correctly-scoped root-cause fix. Findings by severity: 0 blocking, 0 non-blocking. What I verified on this pass:
Note: this review was code-inspection only (no local build/test run performed in this session). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24564/wasm-skia-net9/index.html |
|
The build 235034 found UI Test snapshots differences: Details
|
|
|
morning4coffe-dev
left a comment
There was a problem hiding this comment.
LGTM! Moving Focus() out of MUX_ASSERT fixes the arrow-key navigation dropping in Release builds, aligning with WinUI 2.5.1.
TabView.MoveFocus called Focus() inside MUX_ASSERT, which is
[Conditional("DEBUG")], so Release builds dropped the call entirely:
Left/Right on a tab was marked handled but focus never moved. Hoist the
call out of the assert and return its result, matching
winui3/release/2.5.1.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GRTN5HXeXGXVpTbcBuJ4xL
Walk Tab 1 -> Tab 1 close button -> Tab 2 and back with Left/Right. Runtime tests run in Release, where the old MUX_ASSERT-wrapped Focus() call was compiled out. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GRTN5HXeXGXVpTbcBuJ4xL
Clear WindowHelper.WindowContent in a finally block so the test can't leak TabView focus state into later tests, and add the GitHubWorkItem link to #24560. Co-Authored-By: Claude Sonnet 5 <[email protected]>
92761aa to
b724856
Compare
|
Claude finished @MartinZikmund's task in 1m 24s —— View job Review complete ✅
Verdict: Ship. No inline findings — no code has changed since the last automated pass (this run points at the same three commits, Findings by severity: 0 blocking, 0 non-blocking. Re-confirmed on this pass:
Note: this review was code-inspection only (no local build/test run performed in this session). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24564/wasm-skia-net9/index.html |
|
The build 235800 found UI Test snapshots differences: Details
|
|
@Mergifyio backport servicing/6.8 release/stable/6.7 |
✅ Backports have been createdDetails
|
…r-24564 fix(tabview): Keep arrow-key focus move in Release (backport #24564)
…6.7/pr-24564 fix(tabview): Keep arrow-key focus move in Release (backport #24564)


GitHub Issue: closes #24560
PR Type:
🐞 Bugfix
What changed? 🚀
TabView.MoveFocuscalledcontrol.Focus(FocusState.Keyboard)insideMUX_ASSERT(...). Uno'sMUX_ASSERTis[Conditional("DEBUG")], so Release builds dropped the whole call. Left/Right on a tab was marked handled, but focus never moved.The
Focus()call now sits outside the assert andMoveFocusreturns its result, the same fix WinUI made inwinui3/release/2.5.1. TheMUX Referenceheader is bumped to 2.5.1, since this was the only remaining difference inTabView.cpp.A repo-wide search found no other side-effecting
MUX_ASSERT/Debug.Assertcalls.Validation (Skia desktop, Release): the new test walks Tab 1 → Tab 1 close button → Tab 2 and back. It passes with the fix and fails with the old line restored, which is the negative control. The rest of
Given_TabViewand the MUXTabViewTestsstill pass.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01GRTN5HXeXGXVpTbcBuJ4xL