aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/shortcut.js
diff options
context:
space:
mode:
Diffstat (limited to 'p/scripts/shortcut.js')
-rw-r--r--p/scripts/shortcut.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/p/scripts/shortcut.js b/p/scripts/shortcut.js
index debaffbaa..e78cf6f5e 100644
--- a/p/scripts/shortcut.js
+++ b/p/scripts/shortcut.js
@@ -43,7 +43,9 @@ shortcut = {
//Find Which key is pressed
if (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)) { //FreshRSS
+ var character = String.fromCharCode(code).toLowerCase();
+ }
if(code == 188) character=","; //If the user presses , when the type is onkeydown
if(code == 190) character="."; //If the user presses , when the type is onkeydown