mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14422] Submit when pressing ctrl or cmd + enter
PHPBB3-14422
This commit is contained in:
parent
8058967e7f
commit
1f25f710ea
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue