Repository navigation
fix(tabview): Keep arrow-key focus move in Release (backport #24564) - #25772
Merged
agneszitte merged 3 commits intoOct 28, 2026
Merged
Conversation
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
(cherry picked from commit 57a3567)
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 (cherry picked from commit ef86501)
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]> (cherry picked from commit b724856)
2 of 5 tasks
agneszitte
approved these changes
Oct 28, 2026
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
This is an automatic backport of pull request #24564 done by [Mergify](https://mergify.com).