Closed remuzel closed 4 years ago
Why not just have if (e.key.code == -1) return;
once before the switch?
I didn't want it to happen for any kind of event. Maybe there is no key
under other types of events? I might've been overly cautious but yeah.
This addresses issue #184
Simply adding an if statement to check the event key code, and do nothing (return) if it is -1.
I assumed that any unknown/undefined keys would lead to a keycode of -1, and thus this quick fix should catch them all.