fix(mail(js)): ignore return key in input fields of editor

Fixes #4666
This commit is contained in:
Francis Lachapelle
2021-12-09 17:31:56 -05:00
parent 153c1eeb80
commit 1786ec4d59
2 changed files with 17 additions and 1 deletions
@@ -209,6 +209,15 @@
$mdDialog.hide();
}
// Fix for https://www.sogo.nu/bugs/view.php?id=4666
this.ignoreReturn = function ($event) {
if ($event.keyCode == 13) {
$event.stopPropagation();
$event.preventDefault();
return false;
}
};
this.save = function (options) {
var ctrls = $parentControllers();
this.message.$save().then(function() {