Hi. I've been searching around and reading about events and stuff, but I'm so confused.
As you know, the key that acts as "pressing" a button in Windows is Space Bar, not Enter! I wanna make it so a focused button can be activated by pressing ENTER.
I thought the only solution would be to add an onAction event, which will be fired when Enter is pressed. But I haven't managed to add the event. I tried calling JavaObject.CreateEvent, but I have no idea what the interface name (first parameter) should be.
Am I approaching this correctly? If so, how do I add the event? If not, What can I do to make this work?
Thank you so much in advance.