JSFiddle - React, Tailwind, and code Playground
by Owen Hartley
HTML
<div id="test" style="display:none;" >Shift key is down</div>
JavaScript
document.onmousemove = function(e) {
e = e || window.event;
var copyLabel = document.getElementById("test");
if (e.shiftKey) {
copyLabel.style.display = "inline";
ob_copyOnNodeDrop = true;
}
else {
copyLabel.style.display = "none";
ob_copyOnNodeDrop = false;
}
}