mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
CardDAV (beta/unstable)
This commit is contained in:
parent
248aab17c2
commit
fb54efe922
25 changed files with 133 additions and 26 deletions
|
|
@ -559,10 +559,18 @@ PopupsContactsViewModel.prototype.onBuild = function (oDom)
|
|||
|
||||
$window.on('keydown', function (oEvent) {
|
||||
var bResult = true;
|
||||
if (oEvent && Enums.EventKeyCode.Esc === oEvent.keyCode && self.modalVisibility())
|
||||
if (oEvent && self.modalVisibility())
|
||||
{
|
||||
kn.delegateRun(self, 'closeCommand');
|
||||
bResult = false;
|
||||
if (Enums.EventKeyCode.Esc === oEvent.keyCode)
|
||||
{
|
||||
kn.delegateRun(self, 'closeCommand');
|
||||
bResult = false;
|
||||
}
|
||||
else if (oEvent.ctrlKey && Enums.EventKeyCode.S === oEvent.keyCode)
|
||||
{
|
||||
self.saveCommand();
|
||||
bResult = false;
|
||||
}
|
||||
}
|
||||
|
||||
return bResult;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue