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

Fixes #4666
This commit is contained in:
Francis Lachapelle committed 2021-12-09 17:31:56 -05:00
1 parent 153c1eeb80
commit 1786ec4d59
2 files changed
+17 -1

No files matched your search

@@ -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() {