]> git.wh0rd.org Git - tt-rss.git/commitdiff
hotkeys: change f c and f C to q and Q
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 18 May 2008 03:54:49 +0000 (04:54 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 18 May 2008 03:54:49 +0000 (04:54 +0100)
help/3.php
tt-rss.js

index 0e20a8cf032b5a80e13caba86add72cb78003579..633f5c903951b7ce31263cb4805d2d03e85bd07f 100644 (file)
@@ -41,8 +41,8 @@
                <tr><td class='n'>f a</td><td><?php echo __("(Un)hide read feeds") ?></td></tr>
                <tr><td class='n'>f s</td><td><?php echo __("Subscribe to feed") ?></td></tr>
                <tr><td class='n'>f e</td><td><?php echo __("Edit feed") ?></td></tr>
-               <tr><td class='n'>f c</td><td><?php echo __("Mark feed as read") ?></td></tr>
-               <tr><td class='n'>f C</td><td><?php echo __("Mark all feeds as read") ?></td></tr>
+               <tr><td class='n'>q</td><td><?php echo __("Mark feed as read") ?></td></tr>
+               <tr><td class='n'>Q</td><td><?php echo __("Mark all feeds as read") ?></td></tr>
        </table>
 
        <h2><?php echo __("Go to...") ?></h2>
index 3b16e13f8d3d5c7962f0b44ed048788f6c6193c9..587ea198e1c9ad29d32e6a5f4bdfd47b3add6bd8 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -1092,6 +1092,20 @@ function hotkey_handler(e) {
                                }
                        }
 
+                       if (keycode == 81 && shift_key) { // Q
+                               if (typeof catchupAllFeeds != 'undefined') {
+                                       catchupAllFeeds();
+                                       return false;
+                               }
+                       }
+
+                       if (keycode == 81) { // q
+                               if (getActiveFeedId()) {
+                                       catchupCurrentFeed();
+                                       return false;
+                               }
+                       }
+
                }
 
                /* Prefix f */