JSFiddle - React, Tailwind, and code Playground
by AndyE
HTML
<div id="test" style="display:none;" >Shift key is down</div>
CSS
.quoteWrapper { background-color: green; }
.quote { height: 16px; }
.sixQuoteWrapper { background-color: red; margin: 2px; }
JavaScript
window.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;
}
}