mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.1.x' into 3.2.x
This commit is contained in:
commit
18fea1b286
1 changed files with 6 additions and 0 deletions
|
@ -414,6 +414,12 @@ function getCaretPosition(txtarea) {
|
|||
if ($('#attach-panel').length) {
|
||||
phpbb.showDragNDrop(textarea);
|
||||
}
|
||||
|
||||
$('textarea').on('keydown', function (e) {
|
||||
if (e.which === 13 && (e.metaKey || e.ctrlKey)) {
|
||||
$(this).closest('form').submit();
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue