From: Andrew Dolgov Date: Sat, 17 May 2008 16:03:29 +0000 (+0100) Subject: reinstate N & P shortcuts X-Git-Tag: 1.2.23-final~82 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=62f2d58fac691c35ee46d32e97bfd4123a20b31f;p=tt-rss.git reinstate N & P shortcuts --- diff --git a/help/3.php b/help/3.php index 97f91439..d5c95c11 100644 --- a/help/3.php +++ b/help/3.php @@ -18,6 +18,9 @@ u T o + P + N +

diff --git a/tt-rss.js b/tt-rss.js index 6dd34274..6ed29b5a 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1010,6 +1010,16 @@ function hotkey_handler(e) { return; } + if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down + catchupRelativeToArticle(1); + return false; + } + + if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up + catchupRelativeToArticle(0); + return false; + } + if (keycode == 78 || keycode == 40) { // n, down if (typeof moveToPost != 'undefined') { moveToPost('next');