1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-10 11:15:01 -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) { return function(scope, elm) {
elm.bind('keydown', function(e) { elm.bind('keydown', function(e) {
if (e.keyCode === 78 && scope.$$childTail && scope.$$childTail.write) { if (e.keyCode === 78 && scope.$$childTail && scope.$$childTail.write) {
// n // n -> new mail
e.preventDefault(); e.preventDefault();
return scope.$$childTail.write(); return scope.$$childTail.write();
} else if (e.keyCode === 82 && scope.$$childTail && scope.$$childTail.write && scope.$$childTail.selected) { } else if (e.keyCode === 82 && scope.$$childTail && scope.$$childTail.write && scope.$$childTail.selected) {
// r // r -> reply
e.preventDefault(); e.preventDefault();
return scope.$$childTail.write(scope.$$childTail.selected); return scope.$$childTail.write(scope.$$childTail.selected);
} }