summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-16 06:40:03 +0100
committerAndrew Dolgov <[email protected]>2005-11-16 06:40:03 +0100
commitb623b3edcb79ab73febbfac17e6dddc76745bea1 (patch)
treed27eab6ea65e12e1a336b508080bdc8fb35bfcee /feedlist.js
parentcce41088c0ced4665367f0f25a9c0fff11c9c985 (diff)
some new hotkeys
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js23
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;
}