summaryrefslogtreecommitdiff
path: root/tt-rss.js
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 /tt-rss.js
parent02ef7e02770b733d2e2416f9b9e021fe7ef0f64a (diff)
cdm: add hotkey to dismiss active article
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js5
1 files changed, 5 insertions, 0 deletions
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') {