(js) New hotkeys for message controller

Fixes #3834
This commit is contained in:
Francis Lachapelle
2016-10-17 15:10:40 -04:00
parent aa124d3273
commit 9a050620f0
4 changed files with 38 additions and 2 deletions
@@ -39,6 +39,7 @@
vm.convertToEvent = convertToEvent;
vm.convertToTask = convertToTask;
_registerHotkeys(hotkeys);
// One-way refresh of the parent window when modifying the message from a popup window.
@@ -104,8 +105,24 @@
function _registerHotkeys(keys) {
keys.push(sgHotkeys.createHotkey({
key: l('hotkey_reply'),
description: l('Reply to the message'),
callback: reply
}));
keys.push(sgHotkeys.createHotkey({
key: l('hotkey_replyall'),
description: l('Reply to sender and all recipients'),
callback: replyAll
}));
keys.push(sgHotkeys.createHotkey({
key: l('hotkey_forward'),
description: l('Forward selected message'),
callback: forward
}));
keys.push(sgHotkeys.createHotkey({
key: l('hotkey_flag'),
description: l('Flagged'),
callback: angular.bind(stateMessage, stateMessage.toggleFlag)
}));
keys.push(sgHotkeys.createHotkey({