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:
parent
8058967e7f
commit
1f25f710ea
@ -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…
x
Reference in New Issue
Block a user