]> git.wh0rd.org - tt-rss.git/commitdiff
new hotkey x: un/collapse if viewing category
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 4 Jun 2008 14:28:37 +0000 (15:28 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 4 Jun 2008 14:28:37 +0000 (15:28 +0100)
help/3.php
tt-rss.js

index d24403cbca193e9abd2c40211f6b1130152331ef..76c87c0d06d9f7e508e157af8c799d5b67cf3f8c 100644 (file)
@@ -45,6 +45,7 @@
                <tr><td class='n'>f h</td><td><?php echo __("Hide visible read articles") ?></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>
+               <tr><td class='n'>x</td><td><?php echo __("If viewing category, (un)collapse it") ?></td></tr>
        </table>
 
        <h2><?php echo __("Go to...") ?></h2>
index 2373826f770405ffce10726f16d970e9787c54ba..d917b6dc7cebf1def1924021cb9e23969aeb8a2a 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -1188,6 +1188,12 @@ function hotkey_handler(e) {
                                        }
                                }
                        }
+
+                       if (keycode == 88) { // x
+                               if (activeFeedIsCat()) {
+                                       toggleCollapseCat(getActiveFeedId());
+                               }
+                       }
                }
 
                /* Prefix f */