mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
[ticket/14422] Submit when pressing ctrl or cmd + enter
PHPBB3-14422
This commit is contained in:
@@ -360,7 +360,7 @@ function getCaretPosition(txtarea) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('textarea').on('keydown', function (e) {
|
$('textarea').on('keydown', function (e) {
|
||||||
if (e.which === 13 && e.metaKey) {
|
if (e.which === 13 && (e.metaKey || e.ctrlKey)) {
|
||||||
$(this).closest('form').submit();
|
$(this).closest('form').submit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user