Fix open in browser on enter
This patch fixes the opening of the current item in a browser which was broken for a long time.
This commit is contained in:
parent
0bb19eae06
commit
4b804873a6
2 changed files with 9 additions and 6 deletions
|
@ -81,11 +81,13 @@
|
|||
|
||||
function checkKey(e) {
|
||||
e = e || window.event;
|
||||
|
||||
if (e.keyCode === 37) {
|
||||
window.location.href = "feedthemonkey:previous";
|
||||
}
|
||||
else if (e.keyCode === 39) {
|
||||
} else if (e.keyCode === 39) {
|
||||
window.location.href = "feedthemonkey:next";
|
||||
} else if(e.keyCode == 13) {
|
||||
window.location.href = "feedthemonkey:open";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue