There are two separate functions for sending input events to components, onClick() is called when the mouse clicks a component, and onKeyboardSelect() is called when the player uses the keyboard to select a button.
Anytime you put a button in a NavigableContainer you need to override both to enable both functionalities.
There are two separate functions for sending input events to components, onClick() is called when the mouse clicks a component, and onKeyboardSelect() is called when the player uses the keyboard to select a button.
Anytime you put a button in a NavigableContainer you need to override both to enable both functionalities.