summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-09 21:05:33 +0300
committerAndrew Dolgov <[email protected]>2010-11-09 21:05:33 +0300
commit0129090b3de86b1bf740f1dda224598895d2d3db (patch)
tree21f4723766b754868deb852b98b099a4bdfa15bb
parent02ef7e02770b733d2e2416f9b9e021fe7ef0f64a (diff)
cdm: add hotkey to dismiss active article
-rw-r--r--help/3.php1
-rw-r--r--tt-rss.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/help/3.php b/help/3.php
index 52aabc88f..3b65147c5 100644
--- a/help/3.php
+++ b/help/3.php
@@ -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>
diff --git a/tt-rss.js b/tt-rss.js
index 63518c154..27d499304 100644
--- 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') {