JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

HTML

<input id="test" />

JavaScript

function keydown(evt) {
    var c = evt.keyCode;
    console.log('keycode', c);
        
    if (((47 < c && c < 91) || (95 < c && c < 112) || (185 < c && c < 223))) {
        update(true);
    } 
    
     
}

function update(force) {
    console.log('update!');
}

$('#test').on('keydown', keydown);