diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 6c3994a..46d4257 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -329,24 +329,10 @@ function init(prefix) { 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 (keyDown) { + if (!ev.ctrlKey) { ev.preventDefault(); } }, false); @@ -359,9 +345,6 @@ function init(prefix) { rpl.moveTo(x, y); originalX = x; originalY = y; - if (keyDown) { - ev.preventDefault(); - } }, false); // add replyto post handlers diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index f0b0f6e..110800f 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