SingingBard
Topic Author
Posts: 5
Joined: 22 Oct 2022, 16:57

Is it possible to completely disable the tab button from changing focused control?

05 Jan 2023, 00:53

My game uses tab as a hotkey for something else. I would like to completely disable the Noesis functionality of having it switch focused control. It's very disorienting to have it keep moving the focus all around the UI when I am trying to target something.
 
User avatar
sfernandez
Site Admin
Posts: 2995
Joined: 22 Dec 2011, 19:20

Re: Is it possible to completely disable the tab button from changing focused control?

05 Jan 2023, 14:14

You can hook to PreviewKeyDown event and set e.handled to true for the Tab key, that way keyboard navigation will ignore it and focus won't be affected.
Could you try that?
 
SingingBard
Topic Author
Posts: 5
Joined: 22 Oct 2022, 16:57

Re: Is it possible to completely disable the tab button from changing focused control?

05 Jan 2023, 23:35

That worked - Thanks!
 
User avatar
sfernandez
Site Admin
Posts: 2995
Joined: 22 Dec 2011, 19:20

Re: Is it possible to completely disable the tab button from changing focused control?

09 Jan 2023, 13:24

Great, marking this as solved.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 18 guests