]> git.wh0rd.org - tt-rss.git/commitdiff
reinstate N & P shortcuts
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:03:29 +0000 (17:03 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:03:29 +0000 (17:03 +0100)
help/3.php
tt-rss.js

index 97f91439cb98f082d8bc3a98a737fd23b18b418c..d5c95c11ffd45a609d4f8e026204af0096905fda 100644 (file)
@@ -18,6 +18,9 @@
                <tr><td class='n'>u</td><td><?php echo __("Toggle unread") ?></td></tr>
                <tr><td class='n'>T</td><td><?php echo __("Edit tags") ?></td></tr>
                <tr><td class='n'>o</td><td><?php echo __("Open article in new window") ?></td></tr>
+               <tr><td class='n'>P</td><td><?php echo __("Mark articles above active as read") ?></td></tr>
+               <tr><td class='n'>N</td><td><?php echo __("Mark articles below active as read") ?></td></tr>
+
        </table>
 
        <h2><?php echo __("Other actions") ?></h2>
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');