I'm trying to detect the enter key when pressed, I already have my callback and I notice that eventdata displays me the next:
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=68,keyText=D,keyChar='d'…
More data is display but for my purpose is irrelevant.
My question is, how can I access the keyCode, keyText or any of those values?
So I can do:
if keyCode == 10 %10 is the value of the key enter
%Do Stuff
end
Thanks!
Best Answer