Merge pull request #4941 from Elsensee/ticket/15149

[ticket/15149] Fix Ctrl+Submit action on posting

* github.com:phpbb/phpbb:
  [ticket/15149] Fix Ctrl+Submit action on posting
This commit is contained in:
Tristan Darricau 2017-09-09 17:09:08 +02:00
commit e465af28d1
No known key found for this signature in database
GPG key ID: 817043C2E29DB881

View file

@ -417,7 +417,7 @@ function getCaretPosition(txtarea) {
$('textarea').on('keydown', function (e) { $('textarea').on('keydown', function (e) {
if (e.which === 13 && (e.metaKey || e.ctrlKey)) { if (e.which === 13 && (e.metaKey || e.ctrlKey)) {
$(this).closest('form').submit(); $(this).closest('form').find(':submit').click();
} }
}); });
}); });