if(event.keyCode === 13 ){
return false;
}
basically this simple code above disables a specific key, now i wanted to disable a lot of keys so i came up with something like
if(event.keyCode === 13 || event.keyCode === 14 || event.keyCode === 15 || event.keyCode === 16 , etc)
is there a faster way to do this instead of having to put a lot of ||
s?
im not really sure if this has been asked before but i tried searching and couldnt find anything