add keyboard shrtcut for sync

This commit is contained in:
Tankred Hase 2013-10-17 18:45:20 +02:00
parent 072b1d1dac
commit 94bba66602
2 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,7 @@ define(function(require) {
markAsRead(email);
};
$scope.synchronize = function() {
$scope.$parent.synchronize = $scope.synchronize = function() {
updateStatus('Syncing ...');
// sync from imap to local db
syncImapFolder({

View File

@ -152,6 +152,11 @@ define(function(require) {
// r -> reply
e.preventDefault();
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();
}
});
};