diff options
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/feedlist.js b/feedlist.js index 9e18489d9..ef0c42c2f 100644 --- a/feedlist.js +++ b/feedlist.js @@ -88,8 +88,27 @@ function viewfeed(feed, skip, subop, doc) { } -function init() { +function localHotkeyHandler(keycode) { - hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1); + if (keycode == 65) { // a + return parent.toggleDispRead(); + } + if (keycode == 85) { // u + if (parent.getActiveFeedId()) { + return viewfeed(parent.getActiveFeedId(), 0, "ForceUpdate"); + } + } + + if (keycode == 82) { // r + return parent.scheduleFeedUpdate(true); + } + +// alert("KC: " + keycode); + +} + +function init() { + hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1); + document.onkeydown = hotkey_handler; } |