Forum Discussion
TheEndless
10 years agoRoku Guru
"jedashford" wrote:
This would work except for one point, the ButtonGroup is passign every keypress up the chain, so within the focus of the ButtonGroup the onKeyEvent is getting fired on every keypress. The keyboard widget handles key presses correctly (doesn't send up, but is contained in the component). Unfortunately, without some counters for button clicks and one off code, this wont work, unless someone has an idea for how to suppress key events while navigating a ButtonGroup, but still fire on an up/down while on the first/last buttons.
Can you not check the buttonFocused index, and if it's 0 and the key is "up" then change focus?