]> git.wh0rd.org Git - tt-rss.git/commitdiff
cdm: add hotkey to dismiss active article
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Nov 2010 18:05:33 +0000 (21:05 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Nov 2010 18:05:33 +0000 (21:05 +0300)
help/3.php
tt-rss.js

index 52aabc88fec1844b21d946b3f0442ed92f179097..3b65147c5d544c33cfcdfd92a30777d5b64be4d8 100644 (file)
@@ -17,6 +17,7 @@
                <tr><td class='n'>S</td><td><?php echo __("Toggle published") ?></td></tr>
                <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'>D</td><td><?php echo __("In combined mode, dismiss article") ?></td></tr>
                <tr><td class='n'>o</td><td><?php echo __("Open article in new window") ?></td></tr>
                <tr><td class='n'>c n/c p</td><td><?php echo __("Mark articles below/above active one as read") ?></td></tr>
                <tr><td class='n'>N/P</td><td><?php echo __("Scroll article content") ?></td></tr>
index 63518c154bb39d6a14af3466db040ce593e47506..27d4993041cc956fca67fe194a51e26f2533fd9a 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -1005,6 +1005,11 @@ function hotkey_handler(e) {
                                return;
                        }
 
+                       if (keycode == 68 && shift_key) { // shift-D
+                               if (isCdmMode() && active_post_id) {
+                                       cdmDismissArticle(active_post_id);
+                               }
+                       }
 
                        if (keycode == 78 || keycode == 40) { // n, down
                                if (typeof moveToPost != 'undefined') {