Regression: Initial control is not focused #8816
Labels
area-XamlWindow
bug
Something isn't working
fixed-internally
This bug has been fixed, and the fix will be shipped in the next version of WinUI 3.
team-Reach
Issue for the Reach team
Milestone
Describe the bug
WinUI 3 on Windows App SDK 1.4 does not focus the initial control in a window by default. In previous releases, the control with the lowest TabIndex would automatically get focus. Now the user must tab once before they can do anything useful with the keyboard.
Steps to reproduce the bug
Expected behavior
The button (generally, the control with the lowest TabIndex) should be focused automatically when the window opens, instead of having to tab to it first.
NuGet package version
WinUI 3 - Windows App SDK 1.4.0: 1.4.230822000
Windows version
Windows 11 (22H2): Build 22621
Additional context
Interestingly, if the window is deactivated immediately after it opens (i.e., user selects a different window) and then returns to the window (even without clicking inside the window content area), the correct control will become focused.
The text was updated successfully, but these errors were encountered: