]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/_global/js/keyboard.js
1 function navigateKeyboard(leftURL
, rightURL
) {
2 window
.addEventListener("keydown", function (event
) {
3 var key
= event
.which
|| event
.keyCode
; // event.keyCode is used for IE8 and earlier versions
17 function goLeft(leftURL
) {
18 if (leftURL
!= "?view=view&id=") {
19 window
.location
= window
.location
.origin
+ window
.location
.pathname
+ leftURL
;
23 function goRight(rightURL
) {
24 if (rightURL
!= "?view=view&id=") {
25 window
.location
= window
.location
.origin
+ window
.location
.pathname
+ rightURL
;