diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 48b8044..af59f2a 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -328,11 +328,25 @@ function init(prefix) { var originalX = window.screenX - 150; var originalY = 10; rpl.moveTo(originalX, originalY); + + var keyDown = false; + + e.addEventListener("keydown", function(ev) { + if (ev.shiftKey) { + keyDown = true; + } + }); + + e.addEventListener("keyup", function(ev) { + if (ev.shiftKey) { + keyDown = false; + } + }); e.addEventListener("dragstart", function(ev) { mouseDownX = ev.clientX; mouseDownY = ev.clientY; - if (!ev.altKey) { + if (!keyDown) { ev.preventDefault(); } }, false); @@ -345,7 +359,7 @@ function init(prefix) { rpl.moveTo(x, y); originalX = x; originalY = y; - if (!ev.altKey) { + if (!keyDown) { ev.preventDefault(); } }, false); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 6c40781..65de2e4 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -43,7 +43,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do parent.backlink=true;}};parent.backlink=true;} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx