JSFiddle - React, Tailwind, and code Playground
JavaScript
var non_human_keycodes = [9,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,112,113,114,115,116,117,118,119,120,121,122,123,144,145,91,92,93];
$('#search-input').on('keyup', function(e){
// if (non_human_keycodes.indexOf(e.keyCode) == )
if (non_human_keycodes.indexOf(e.keyCode) === -1) {
delay_search();
}
return;
});