use c, not blocking copying

This commit is contained in:
ville rantanen
2018-03-18 00:06:00 +02:00
parent b3d509e19d
commit 73e42b8024
2 changed files with 4 additions and 10 deletions

View File

@@ -285,15 +285,9 @@ function keyboard_entry(ev) {
if (/N/.test(k)) {
toggle_blank();
}
}
function keyboard_control(ev) {
var kC=ev.keyCode;
var k=String.fromCharCode(ev.keyCode);
if (ev.ctrlKey) {
if (k=='C') {
document.getElementById("filter").value='';
filter(ev);
}
if (/C/.test(k)) {
document.getElementById("filter").value='';
filter(ev);
}
}
@@ -433,7 +427,6 @@ function set_cookie(name,value) {
";path=" + window.location.pathname + ";max-age="+ (60*60*2).toString() + ";";
}
document.onkeyup=keyboard_entry;
document.onkeydown=keyboard_control;
document.onscroll=scroll_save;
var linkReg=/([^\[]*)\[([^\]]+)\]\(([^\)]+)\)(.*)/;
var linkPlain=/(.*)(http[^\s]+)(.*)/;