-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NavigationView Keyboard Focus is Broken in Top Navigation Mode #2521
Comments
@ojhad can you investigate this keyboarding issue ? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Update: It turns out, the reason I was not able to repro this is that I disabled the XAML Debug Tools, which when enabled, occludes some NavView items when the window is narrow enough: The arrow navigation always skips the items that are occluded by the XAML Debug Tools. @ojhad FYI |
@chingucoding Thanks for investigating this. This seems to be an side effect of using XYFocus from the platform. I am guessing that this behavior is by design and will not repro when not running under the debugger. @Austin-Lamb and @stevenbrix as FYI. |
I'm honestly a bit surprised this happens, this seems non-intuitive. |
Could this bug also be triggered by some other UI element, eg a button that overlaps some items like the XAML Debug Tools? |
Although I understand why it is happening, I'm not sure if this is the intended design. @Austin-Lamb @fabiant3 Should the buttons on the visual tree tools ribbon on the app be focusable ? Should it be excluded by XYFocus logic from its list of candidates ? |
I just wanted to comment that I had a laugh when I saw the presence of the debug tool's UI is causing a "bug"... it's just one of those things you'd never expect. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Describe the bug
I'm noticing issues with Keyboard focus navigation of the arrow keys on
NavigationView
when in TopPaneDisplayMode
. However, the weird thing is, I can see similar (though slightly different) issues between 2.3.2002 and 2.4.2 even though they're different implementations with the ItemsRepeater!I have a branch here which demonstrates the issue.
Not sure if related to #2175 or not (probably not as was an issue in 2.3.2002 as well)?
Steps to reproduce the bug
Settings
Note:
Other2
andOther3
are skipped! And when you use left from Settings as well!If you Maximize the app, this problem goes away... 🤷♂️ Seems like maybe some overflow logic is interfering with Keyboard focus???
If you shrink the window smaller a different behavior is exhibited with some middle items being skipped. Something related to the Horizontal width of the control is effecting Keyboard navigation here.
Expected behavior
Keyboard focus should navigate to each item in the top navigation header, just as things work vertically in the normal mode.
Screenshots
See live stream clip here
Version Info
NuGet package version: 2.3.2.200213001 & 2.4.2
Additional context
The text was updated successfully, but these errors were encountered: