Skip to content

fix(tabview): Keep arrow-key focus move in Release (backport #24564) - #25771

Merged
agneszitte merged 3 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-24564
Oct 28, 2026
Merged

agneszitte merged 3 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-24564

Conversation

@mergify

@mergify mergify Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #24560

PR Type:

🐞 Bugfix

What changed? 🚀

TabView.MoveFocus called control.Focus(FocusState.Keyboard) inside MUX_ASSERT(...). Uno's MUX_ASSERT is [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 and MoveFocus returns its result, the same fix WinUI made in winui3/release/2.5.1. The MUX Reference header is bumped to 2.5.1, since this was the only remaining difference in TabView.cpp.

A repo-wide search found no other side-effecting MUX_ASSERT/Debug.Assert calls.

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_TabView and the MUX TabViewTests still pass.

PR Checklist ✅

🤖 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).

MartinZikmund and others added 3 commits October 28, 2026 00:59
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)
@agneszitte
agneszitte merged commit 54f21fb into servicing/6.8 Oct 28, 2026
8 of 9 checks passed
@agneszitte
agneszitte deleted the mergify/bp/servicing/6.8/pr-24564 branch October 28, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants