diff options
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js index 499705b63..a974afdb2 100644 --- a/feedlist.js +++ b/feedlist.js @@ -118,6 +118,20 @@ function localHotkeyHandler(keycode) { return parent.scheduleFeedUpdate(true); } + var feedlist = document.getElementById('feedList'); + + if (keycode == 74) { // j + var feed = getActiveFeedId(); + var new_feed = getRelativeFeedId(feedlist, feed, 'prev'); + if (new_feed) viewfeed(new_feed, 0, ''); + } + + if (keycode == 75) { // k + var feed = getActiveFeedId(); + var new_feed = getRelativeFeedId(feedlist, feed, 'next'); + if (new_feed) viewfeed(new_feed, 0, ''); + } + // alert("KC: " + keycode); } |