use c, not blocking copying
This commit is contained in:
@@ -8,6 +8,7 @@ MDLinks is a static HTML page with JS markdown parser. It creates a link portal
|
|||||||
|
|
||||||
* At the top there is a search bar. Enter values to filter out links not matching to keyword.
|
* At the top there is a search bar. Enter values to filter out links not matching to keyword.
|
||||||
* Pressing key 's' focuses the search bar.
|
* Pressing key 's' focuses the search bar.
|
||||||
|
* Pressing key 'c' clears the search bar.
|
||||||
* Top right has a toggle button. Click it to convert all links to open in a new window/tab.
|
* Top right has a toggle button. Click it to convert all links to open in a new window/tab.
|
||||||
* Pressing key 'n' toggles
|
* Pressing key 'n' toggles
|
||||||
|
|
||||||
|
|||||||
13
index.html
13
index.html
@@ -285,15 +285,9 @@ function keyboard_entry(ev) {
|
|||||||
if (/N/.test(k)) {
|
if (/N/.test(k)) {
|
||||||
toggle_blank();
|
toggle_blank();
|
||||||
}
|
}
|
||||||
}
|
if (/C/.test(k)) {
|
||||||
function keyboard_control(ev) {
|
document.getElementById("filter").value='';
|
||||||
var kC=ev.keyCode;
|
filter(ev);
|
||||||
var k=String.fromCharCode(ev.keyCode);
|
|
||||||
if (ev.ctrlKey) {
|
|
||||||
if (k=='C') {
|
|
||||||
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() + ";";
|
";path=" + window.location.pathname + ";max-age="+ (60*60*2).toString() + ";";
|
||||||
}
|
}
|
||||||
document.onkeyup=keyboard_entry;
|
document.onkeyup=keyboard_entry;
|
||||||
document.onkeydown=keyboard_control;
|
|
||||||
document.onscroll=scroll_save;
|
document.onscroll=scroll_save;
|
||||||
var linkReg=/([^\[]*)\[([^\]]+)\]\(([^\)]+)\)(.*)/;
|
var linkReg=/([^\[]*)\[([^\]]+)\]\(([^\)]+)\)(.*)/;
|
||||||
var linkPlain=/(.*)(http[^\s]+)(.*)/;
|
var linkPlain=/(.*)(http[^\s]+)(.*)/;
|
||||||
|
|||||||
Reference in New Issue
Block a user