diff options
author | Andrew Dolgov <[email protected]> | 2010-11-09 21:05:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-09 21:05:33 +0300 |
commit | 0129090b3de86b1bf740f1dda224598895d2d3db (patch) | |
tree | 21f4723766b754868deb852b98b099a4bdfa15bb | |
parent | 02ef7e02770b733d2e2416f9b9e021fe7ef0f64a (diff) |
cdm: add hotkey to dismiss active article
-rw-r--r-- | help/3.php | 1 | ||||
-rw-r--r-- | tt-rss.js | 5 |
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> @@ -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') { |