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:
23
feedlist.js
23
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user