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

PHPBB3-15149
This commit is contained in:
Oliver Schramm 2017-09-09 15:54:10 +02:00
parent 16da17a4ba
commit 6a96249e24

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();
} }
}); });
}); });