cdm: add hotkey to dismiss active article

This commit is contained in:
Andrew Dolgov 2010-11-09 21:05:33 +03:00
parent 02ef7e0277
commit 0129090b3d
2 changed files with 6 additions and 0 deletions

View 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>

View File

@ -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') {