I realise that if I use:
if (e.which == 81) {
do whatever
}
I can activate an action based on key 81 being pressed.
But how would I do the same, regardless of what key is pressed?
I realise that if I use:
if (e.which == 81) {
do whatever
}
I can activate an action based on key 81 being pressed.
But how would I do the same, regardless of what key is pressed?