summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-07-30 23:32:23 -0700
committerAndrew Dolgov <[email protected]>2011-07-30 23:32:23 -0700
commit7d7f44ec01cbd4db9eaa8cbfb64326395e0b2332 (patch)
treeb4952824c3747f31325863e645aaa8c7b912d289
parent9d9faf6dc2e9387a7bfe3040c36bc8bf9b87294e (diff)
parentfe66e229d7445e67d1f8efe8042b92d6af26f66f (diff)
Merge pull request #8 from chernesk/master
Added hotkey for sending article as an email
-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});