new hotkey x: un/collapse if viewing category

This commit is contained in:
Andrew Dolgov 2008-06-04 15:28:37 +01:00
parent ec37f4f112
commit 9bbbc82c75
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,7 @@
<tr><td class='n'>f h</td><td><?php echo __("Hide visible read articles") ?></td></tr>
<tr><td class='n'>q</td><td><?php echo __("Mark feed as read") ?></td></tr>
<tr><td class='n'>Q</td><td><?php echo __("Mark all feeds as read") ?></td></tr>
<tr><td class='n'>x</td><td><?php echo __("If viewing category, (un)collapse it") ?></td></tr>
</table>
<h2><?php echo __("Go to...") ?></h2>

View File

@ -1188,6 +1188,12 @@ function hotkey_handler(e) {
}
}
}
if (keycode == 88) { // x
if (activeFeedIsCat()) {
toggleCollapseCat(getActiveFeedId());
}
}
}
/* Prefix f */