Apply some customization

This commit is contained in:
2021-11-01 23:10:53 +08:00
parent 791b998489
commit 3c806a5b2b
6 changed files with 49 additions and 29 deletions

View File

@ -567,6 +567,15 @@ require(["dojo/_base/kernel",
this.hotkey_actions["toggle_night_mode"] = function () {
App.toggleNightMode();
};
this.hotkey_actions['mark_all_as_read'] = function () {
Headlines.select('unread');
Headlines.selectionToggleUnread({ no_error: 1 });
setTimeout(function() {
if (Feeds.getActive() != undefined) {
Feeds.open({feed: Feeds.getActive(), is_cat: Feeds.activeIsCat()});
}
}, 1000);
};
},
onActionSelected: function(opid) {
switch (opid) {