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:
parent
072b1d1dac
commit
94bba66602
@ -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({
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user