mirror of
https://github.com/moparisthebest/mail
synced 2025-01-11 05:28:00 -05:00
change hotkeys to use ctrl und cmd
This commit is contained in:
parent
1affc95c69
commit
7032a4f8c6
@ -126,16 +126,23 @@ define(function(require) {
|
|||||||
return;
|
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
|
// n -> new mail
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
scope.state.writer.write();
|
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
|
// r -> reply
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
scope.state.writer.write(scope.state.mailList.selected);
|
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) {
|
} else if (e.keyCode === 27 && scope.state.writer.open) {
|
||||||
// escape -> close writer
|
// escape -> close writer
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -150,11 +157,6 @@ define(function(require) {
|
|||||||
// escape -> close nav view
|
// escape -> close nav view
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
scope.state.nav.toggle(false);
|
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();
|
scope.$apply();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<input ng-model="searchText" placeholder="Search">
|
<input ng-model="searchText" placeholder="Find">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages.length">
|
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages.length">
|
||||||
|
Loading…
Reference in New Issue
Block a user