Added: New keyboard shortcuts for compose popup (Esc, Sift+Esc, `)

Fixed: Folders list tree viewer
This commit is contained in:
RainLoop Team 2015-08-30 21:12:51 +03:00
parent 3498700f61
commit 9b6b68e72b
36 changed files with 90 additions and 6 deletions

View file

@ -124,6 +124,8 @@
}, this).extend({'notify': 'always'});
this.subject = ko.observable('');
this.subject.focused = ko.observable(false);
this.isHtml = ko.observable(false);
this.requestDsn = ko.observable(false);
@ -1423,11 +1425,28 @@
oScript = null
;
key('ctrl+q, command+q', Enums.KeyState.Compose, function () {
key('ctrl+q, command+q, ctrl+w, command+w', Enums.KeyState.Compose, function () {
return false;
});
key('`', Enums.KeyState.Compose, function () {
if (self.oEditor && !self.oEditor.hasFocus() && !Utils.inFocus())
{
self.identitiesDropdownTrigger(true);
return false;
}
});
key('ctrl+`', Enums.KeyState.Compose, function () {
self.identitiesDropdownTrigger(true);
return false;
});
key('esc, ctrl+down, command+down', Enums.KeyState.Compose, function () {
self.skipCommand();
return false;
});
if (this.allowFolders)
{
key('ctrl+s, command+s', Enums.KeyState.Compose, function () {
@ -1444,7 +1463,7 @@
});
}
key('esc', Enums.KeyState.Compose, function () {
key('shift+esc', Enums.KeyState.Compose, function () {
if (self.modalVisibility())
{
self.tryToClosePopup();