From: Andrew Dolgov Date: Tue, 9 Nov 2010 18:05:33 +0000 (+0300) Subject: cdm: add hotkey to dismiss active article X-Git-Tag: 1.5.0~331 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0129090b3de86b1bf740f1dda224598895d2d3db;p=tt-rss.git cdm: add hotkey to dismiss active article --- diff --git a/help/3.php b/help/3.php index 52aabc88..3b65147c 100644 --- a/help/3.php +++ b/help/3.php @@ -17,6 +17,7 @@ S u T + D o c n/c p N/P diff --git a/tt-rss.js b/tt-rss.js index 63518c15..27d49930 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') {