Merge pull request #8 from chernesk/master
Added hotkey for sending article as an email
This commit is contained in:
commit
7d7f44ec01
|
@ -22,6 +22,7 @@
|
||||||
<tr><td class='n'>o</td><td><?php echo __("Open article in new window") ?></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'>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'>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>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -680,6 +680,11 @@ function hotkey_handler(e) {
|
||||||
|
|
||||||
if (!hotkey_prefix) {
|
if (!hotkey_prefix) {
|
||||||
|
|
||||||
|
if (keycode == 69) { // e
|
||||||
|
var id = getActiveArticleId();
|
||||||
|
emailArticle(id);
|
||||||
|
}
|
||||||
|
|
||||||
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
|
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
|
||||||
if (!Element.visible("hotkey_help_overlay")) {
|
if (!Element.visible("hotkey_help_overlay")) {
|
||||||
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
||||||
|
|
Loading…
Reference in New Issue