summaryrefslogtreecommitdiff
path: root/plugins/kolab_shortcuts
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-02-19 08:34:23 (GMT)
committerAleksander Machniak <alec@alec.pl>2015-02-19 08:34:23 (GMT)
commit95a85c121680322ad29ceef38d59eef85bfe605e (patch)
treed8b2007818aea78f573e702f1c27d0c2bcde529d /plugins/kolab_shortcuts
parent317bd4da63bd4d7c9c14d41aca373fc095efc3a3 (diff)
downloadroundcubemail-plugins-kolab-95a85c121680322ad29ceef38d59eef85bfe605e.tar.gz
Add shortcuts for mail forward action
Diffstat (limited to 'plugins/kolab_shortcuts')
-rw-r--r--plugins/kolab_shortcuts/kolab_shortcuts.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/kolab_shortcuts/kolab_shortcuts.js b/plugins/kolab_shortcuts/kolab_shortcuts.js
index f09d82a..7f624c3 100644
--- a/plugins/kolab_shortcuts/kolab_shortcuts.js
+++ b/plugins/kolab_shortcuts/kolab_shortcuts.js
@@ -127,6 +127,16 @@ var kolab_shortcuts = {
active: function(e) { return rcmail.task == 'mail'; },
action: function(e) { return rcmail.command('reply', '', e.target, e); }
},
+ 'mail.forward-attachment': {
+ key: 102, // f
+ active: function(e) { return rcmail.task == 'mail'; },
+ action: function(e) { return rcmail.command('forward-attachment', 'sub', e.target, e); }
+ },
+ 'mail.forward-inline': {
+ key: 70, // F
+ active: function(e) { return rcmail.task == 'mail'; },
+ action: function(e) { return rcmail.command('forward-inline', 'sub', e.target, e); }
+ },
'mail.html2text': {
key: 72, // H
active: function(e) { return rcmail.task == 'mail'; },
@@ -175,7 +185,7 @@ var kolab_shortcuts_keypress = function(e)
{
var i, handler, key = e.which, alt = e.altKey, ctrl = e.ctrlKey;
- // console.log(e.which);
+ console.log(e.which);
// do nothing on input elements
if ($(e.target).is('textarea,input')) {