I'd like to run some code whenever the user presses certain keys while typing in a TextField
.
For example, if I wanted to increment a variable whenever the user pressed the spacebar while typing, what would be the best way to accomplish that?
I'd like to run some code whenever the user presses certain keys while typing in a TextField
.
For example, if I wanted to increment a variable whenever the user pressed the spacebar while typing, what would be the best way to accomplish that?