Merge pull request #8 from chernesk/master

Added hotkey for sending article as an email
This commit is contained in:
Andrew Dolgov 2011-07-30 23:32:23 -07:00
commit 7d7f44ec01
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@
<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>
<tr><td class='n'>e</td><td><?php echo __("Email article") ?></td></tr>
</table>

View File

@ -680,6 +680,11 @@ function hotkey_handler(e) {
if (!hotkey_prefix) {
if (keycode == 69) { // e
var id = getActiveArticleId();
emailArticle(id);
}
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) {
Effect.Appear("hotkey_help_overlay", {duration : 0.3});