A free, self-hostable news aggregator…
Fix library with code provided in the comments of the library page.
Alexis Degrugillier7a59568dfc20
diff --git a/p/scripts/shortcut.js b/p/scripts/shortcut.jsindex debaffbaa..4137172c3 100644--- a/p/scripts/shortcut.js+++ b/p/scripts/shortcut.js@@ -43,7 +43,9 @@ shortcut = {//Find Which key is pressedif (e.keyCode) code = e.keyCode;else if (e.which) code = e.which;- var character = String.fromCharCode(code).toLowerCase();+ if( code == 32 || (code >= 48 && code <= 90) || (code >= 96 && code <= 111) || (code >= 186 && code <= 192) || (code >= 219 && code <= 222)) {+ var character = String.fromCharCode(code).toLowerCase();+ }if(code == 188) character=","; //If the user presses , when the type is onkeydownif(code == 190) character="."; //If the user presses , when the type is onkeydown