mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 09:22:23 -05:00
add keyboard shrtcut for sync
This commit is contained in:
parent
072b1d1dac
commit
94bba66602
@ -34,7 +34,7 @@ define(function(require) {
|
|||||||
markAsRead(email);
|
markAsRead(email);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.synchronize = function() {
|
$scope.$parent.synchronize = $scope.synchronize = function() {
|
||||||
updateStatus('Syncing ...');
|
updateStatus('Syncing ...');
|
||||||
// sync from imap to local db
|
// sync from imap to local db
|
||||||
syncImapFolder({
|
syncImapFolder({
|
||||||
|
@ -152,6 +152,11 @@ define(function(require) {
|
|||||||
// r -> reply
|
// r -> reply
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return scope.$$childTail.write(scope.$$childTail.selected);
|
return scope.$$childTail.write(scope.$$childTail.selected);
|
||||||
|
|
||||||
|
} else if (e.keyCode === 83 && scope.$$childTail && scope.$$childTail.synchronize) {
|
||||||
|
// s -> sync folder
|
||||||
|
e.preventDefault();
|
||||||
|
return scope.$$childTail.synchronize();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user