diff options
author | Andrew Dolgov <[email protected]> | 2019-12-05 17:00:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-05 17:00:17 +0300 |
commit | 1902a7dcb0d4b0fc00a1c2ed86f4b8ab757f4508 (patch) | |
tree | feded37649207e0867079a94b946fdb6ca9729b0 /js/tt-rss.js | |
parent | f30287be652295d18e632316a66866697c26638c (diff) |
pgup/pgdown hotkey normalization:
- pgup/pgdown without modifier scroll headline buffer
- shift+pgup/pgdown work similarly to shift+up/down but operating on pages
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 43d057199..f5444207d 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -330,11 +330,17 @@ require(["dojo/_base/kernel", this.hotkey_actions["article_scroll_up"] = function () { Article.scroll(-40); }; + this.hotkey_actions["next_article_page"] = function () { + Headlines.scrollByPages(1); + }; + this.hotkey_actions["prev_article_page"] = function () { + Headlines.scrollByPages(-1); + }; this.hotkey_actions["article_page_down"] = function () { - Article.scrollPages(1); + Article.scrollByPages(1); }; this.hotkey_actions["article_page_up"] = function () { - Article.scrollPages(-1); + Article.scrollByPages(-1); }; this.hotkey_actions["close_article"] = function () { if (App.isCombinedMode()) { |