1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 21:59:15 +00:00

some new hotkeys

This commit is contained in:
Andrew Dolgov
2005-11-16 06:40:03 +01:00
parent cce41088c0
commit b623b3edcb
4 changed files with 51 additions and 9 deletions

View File

@@ -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;
}