Nifty: Keyboard navigation and other inputs

Couldn’t find any information about this at all.



What I’m trying to do is just turn off keyboard navigation entirely, including the highlighting of the different elements. A nice feature to have in a GUI library but not one I want to take advantage of.

Are u using the default-nifty-style.xml ok? Use yourself styles instead, and do what u wanna do. Here is the nifty source code so you can check how the default nifty styles were created to take as reference https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-default-controls/trunk/src/main/resources/nifty-controls/.

@glaucomardano is right.



Nifty doesn’t allow to turn these on/off. You’ll have to make your own styles, or simply tweak the default ones to suit your needs. I’m not sure why it wasn’t designed that way from the start but, hey. That’s the way it works and that’s all.


@ctwildgoose said:
Couldn't find any information about this at all.

What I'm trying to do is just turn off keyboard navigation entirely, including the highlighting of the different elements. A nice feature to have in a GUI library but not one I want to take advantage of.

One look at those control XMLs and it’s quite clear, really. Thanks, guys!

@ctwildgoose said:
One look at those control XMLs and it's quite clear, really. Thanks, guys!


Yeah. Not hard. Just time consuming. -.-