1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-11 13:38:02 -05:00

add comments

This commit is contained in:
Tankred Hase 2013-10-13 12:56:33 +02:00
parent 62ce7bea60
commit 382a86d4ee

View File

@ -96,12 +96,12 @@ define(function(require) {
return function(scope, elm) {
elm.bind('keydown', function(e) {
if (e.keyCode === 78 && scope.$$childTail && scope.$$childTail.write) {
// n
// n -> new mail
e.preventDefault();
return scope.$$childTail.write();
} else if (e.keyCode === 82 && scope.$$childTail && scope.$$childTail.write && scope.$$childTail.selected) {
// r
// r -> reply
e.preventDefault();
return scope.$$childTail.write(scope.$$childTail.selected);
}