Skip to content

Commit

Permalink
Pressing 'Ctrl+Enter' in a textarea or 'Enter' in an input field now …
Browse files Browse the repository at this point in the history
…submits the form instead of saving a draft.
  • Loading branch information
NiklasSchmitt committed Feb 8, 2024
1 parent 55c5f02 commit e03c287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 7.0.16 2024-??-??
- 2024-02-08 Pressing 'Ctrl+Enter' in a textarea or 'Enter' in an input field now submits the form instead of saving a draft.
- 2024-02-08 Sector Nord AG: Pressing 'Enter' inside of `<input>` triggers wrong event. Thanks to Ziggy Trotter (@ZTrotter), Sector Nord AG. [PR#498](https://github.com/znuny/Znuny/pull/498)
- 2024-02-08 Process management: Fixed js error while editing activity dialog.
- 2024-02-06 Fixed handling of (un)selecting checkboxes on permissions table for AdminCustomerUserGroup.
Expand Down
2 changes: 1 addition & 1 deletion var/httpd/htdocs/js/Core.Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Core.Form = (function (TargetNS) {
$('body').on('keydown', 'input', function (Event) {
if (Event.keyCode == 13) {
Event.preventDefault();
$('form').find(':submit').last().click();
$(this.form).find(':submit').last().click();
}
});

Expand Down

0 comments on commit e03c287

Please sign in to comment.