1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

change hotkeys to use ctrl und cmd

This commit is contained in:
Tankred Hase 2013-12-06 11:51:13 +01:00
parent 1affc95c69
commit 7032a4f8c6
2 changed files with 10 additions and 8 deletions

View File

@ -126,16 +126,23 @@ define(function(require) {
return;
}
if (e.keyCode === 78 && scope.state.writer && !scope.state.writer.open) {
var modifier = e.ctrlKey || e.metaKey;
if (modifier && e.keyCode === 78 && scope.state.writer && !scope.state.writer.open) {
// n -> new mail
e.preventDefault();
scope.state.writer.write();
} else if (e.keyCode === 82 && scope.state.writer && !scope.state.writer.open && scope.state.mailList.selected) {
} else if (modifier && e.keyCode === 82 && scope.state.writer && !scope.state.writer.open && scope.state.mailList.selected) {
// r -> reply
e.preventDefault();
scope.state.writer.write(scope.state.mailList.selected);
} else if (modifier && e.keyCode === 83 && scope.state.writer && !scope.state.writer.open && scope.state.mailList.synchronize) {
// s -> sync folder
e.preventDefault();
scope.state.mailList.synchronize();
} else if (e.keyCode === 27 && scope.state.writer.open) {
// escape -> close writer
e.preventDefault();
@ -150,11 +157,6 @@ define(function(require) {
// escape -> close nav view
e.preventDefault();
scope.state.nav.toggle(false);
} else if (e.keyCode === 83 && scope.state.writer && !scope.state.writer.open && scope.state.mailList.synchronize) {
// s -> sync folder
e.preventDefault();
scope.state.mailList.synchronize();
}
scope.$apply();

View File

@ -5,7 +5,7 @@
</header>
<div class="search">
<input ng-model="searchText" placeholder="Search">
<input ng-model="searchText" placeholder="Find">
</div>
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages.length">