mirror of
https://github.com/moparisthebest/mail
synced 2024-11-10 11:15:01 -05:00
add comments
This commit is contained in:
parent
62ce7bea60
commit
382a86d4ee
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user