I’ve created a simple nifty 1.3 GUI using the builders containing two buttons. These are however focused and pressing the up or down key causes the focus to switch from one button to the next. This causes JME to not respond to the key event. How can I unfocus the nifty buttons or alternatively have nifty ignore the user pressing the up/down key?
You can either: (depending on Creator/Builder)
setFocusable(“false”); OR focusable(false);
unless you need them to be focusable but want to stop the above issue… and then I really do not remember. But, the above with allow you to still click the button without it grabbing keyboard focus.
Ah yes, that fixed it. Thanks a lot!