JSFiddle - React, Tailwind, and code Playground

by mprabhat

HTML

<div id="first">  
    <input type="text" value="" />
    <input type="text" value="" />
</div>
<div id="second">
    <input type="text" />
</div>
<span>
    <input type="text" value="" />
</span>

JavaScript

jQuery('input').not('div :input').keydown(function(e) {
    alert(e.keyCode); // replace "37" below with the windows key code
    if (e.keyCode == 37) {
        alert("windows key pressed");
        return false;
    }
});