X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=tt-rss.js;h=3cb07e1243ba18c0bc0879c80c6ca492a4dfd5fc;hb=a411875be5c37256c27d27adee7588a8acbc7104;hp=9a52354976f27bd8b91b129e4f93d1464b0e67bb;hpb=45c8c7a68f3504107c23972dac048968eae051db;p=tt-rss.git diff --git a/tt-rss.js b/tt-rss.js index 9a523549..3cb07e12 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1134,16 +1134,27 @@ function hotkey_handler(e) { return; } - if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down + if (shift_key && keycode == 40) { // shift-down catchupRelativeToArticle(1); return; } - if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up + if (shift_key && keycode == 38) { // shift-up catchupRelativeToArticle(0); return; } + if (shift_key && keycode == 78) { // N + scrollArticle(50); + return; + } + + if (shift_key && keycode == 80) { // P + scrollArticle(-50); + return; + } + + if (keycode == 78 || keycode == 40) { // n, down if (typeof moveToPost != 'undefined') { moveToPost('next'); @@ -1332,6 +1343,17 @@ function hotkey_handler(e) { } } + if (keycode == 78) { // n + catchupRelativeToArticle(1); + return; + } + + if (keycode == 80) { // p + catchupRelativeToArticle(0); + return; + } + + } /* Prefix g */