]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
reinstate N & P shortcuts
[tt-rss.git] / tt-rss.js
index 6dd3427457d3e9c34ad2877ae5c0a0a8c63eb3ab..6ed29b5a115b0fc572a3fe8fffd182bcc55660c2 100644 (file)
--- 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');