summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Chernesky <[email protected]>2011-07-18 12:24:41 -0400
committerChris Chernesky <[email protected]>2011-07-18 12:24:41 -0400
commitfe66e229d7445e67d1f8efe8042b92d6af26f66f (patch)
treeb21d3522eefb47fc1357e5a8941bbb28c93f6531
parent44cddbcedb2425d280c67fc15ff9fdbe749cceb1 (diff)
adding an email article hotkey 'e'
-rw-r--r--help/3.php1
-rw-r--r--tt-rss.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/help/3.php b/help/3.php
index 7e2f1deef..45143dcef 100644
--- a/help/3.php
+++ b/help/3.php
@@ -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>
diff --git a/tt-rss.js b/tt-rss.js
index 1d8d3add8..d613b7d49 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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});