cdm: add hotkey to dismiss active article

master
Andrew Dolgov 14 years ago
parent 02ef7e0277
commit 0129090b3d

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

Loading…
Cancel
Save