Page 1 of 1
Is it possible to completely disable the tab button from changing focused control?
Posted: 05 Jan 2023, 00:53
by SingingBard
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.
Re: Is it possible to completely disable the tab button from changing focused control?
Posted: 05 Jan 2023, 14:14
by sfernandez
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?
Re: Is it possible to completely disable the tab button from changing focused control?
Posted: 05 Jan 2023, 23:35
by SingingBard
That worked - Thanks!
Re: Is it possible to completely disable the tab button from changing focused control?
Posted: 09 Jan 2023, 13:24
by sfernandez
Great, marking this as solved.