1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 01:12:19 -05:00

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); 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({

View File

@ -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();
} }
}); });
}; };