PageLeft and PageRight focus traversal
By default, Noesis uses PageLeft and PageRight to traverse focus previous and next.
In our game, we never want this behaviour. Is there a way to disable this behaviour?
Thanks
In our game, we never want this behaviour. Is there a way to disable this behaviour?
Thanks
-
sfernandez
Site Admin
- Posts: 3014
- Joined:
Re: PageLeft and PageRight focus traversal
PageLeft/Right keys are used to scroll pages in a ScrollViewer only. Apart from that we use GamepadPageLeft/Right to simulate Ctrl+Tab focus navigation, for example to change between tabs in a TabControl. Is this what you mean?
Anyway, if you need to override that behavior you need to handle those keys in the PreviewKeyDown of your page/window. Could you try that?
Anyway, if you need to override that behavior you need to handle those keys in the PreviewKeyDown of your page/window. Could you try that?
Re: PageLeft and PageRight focus traversal
If you are in Unity, you can also entirely disable keyboard in the view and enable actions to drive the navigation. This way you can redefine the inputs to your needs.
Re: PageLeft and PageRight focus traversal
Yes, this is what I'm referring to (sorry I should have been more specific!). We have gotten around this issue by setting the attatched KeyboardNavigation properties TabNavigation and ControlTabNavigation to "None" on any controls where this is a problem.we use GamepadPageLeft/Right to simulate Ctrl+Tab focus navigation, for example to change between tabs in a TabControl. Is this what you mean?
Re: PageLeft and PageRight focus traversal
Using the TabNavigation properties didn't work as well as I'd hoped. A new problem that I've just encountered is that trying to move focus programmatically with FocusNavigationDirection_First does not work when the TabNavigation property is set to "None".
In any case, handling those keys in the PreviewKeyDown is enough to fix this problem, thank you for the advice :).
In any case, handling those keys in the PreviewKeyDown is enough to fix this problem, thank you for the advice :).
-
sfernandez
Site Admin
- Posts: 3014
- Joined:
Re: PageLeft and PageRight focus traversal
Happy to help!
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 3 guests