1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 12:22:03 +02:00

[ticket/14422] Submit when pressing ctrl or cmd + enter

PHPBB3-14422
This commit is contained in:
Marc Alexander 2016-03-10 15:08:12 +01:00
parent 8058967e7f
commit 1f25f710ea

View File

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