lachfoy
Topic Author
Posts: 12
Joined: 20 Feb 2024, 06:25

PageLeft and PageRight focus traversal

26 Apr 2024, 03:20

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
 
User avatar
sfernandez
Site Admin
Posts: 3027
Joined: 22 Dec 2011, 19:20

Re: PageLeft and PageRight focus traversal

29 Apr 2024, 12:29

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?
 
User avatar
jsantos
Site Admin
Posts: 3959
Joined: 20 Jan 2012, 17:18
Contact:

Re: PageLeft and PageRight focus traversal

29 Apr 2024, 13:21

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.
 
lachfoy
Topic Author
Posts: 12
Joined: 20 Feb 2024, 06:25

Re: PageLeft and PageRight focus traversal

01 May 2024, 01:14

we use GamepadPageLeft/Right to simulate Ctrl+Tab focus navigation, for example to change between tabs in a TabControl. Is this what you mean?
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.
 
lachfoy
Topic Author
Posts: 12
Joined: 20 Feb 2024, 06:25

Re: PageLeft and PageRight focus traversal

09 May 2024, 02:23

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 :).
 
User avatar
sfernandez
Site Admin
Posts: 3027
Joined: 22 Dec 2011, 19:20

Re: PageLeft and PageRight focus traversal

15 May 2024, 10:42

Happy to help!

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests