diff options
| -rw-r--r-- | phpBB/assets/javascript/editor.js | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/editor.js b/phpBB/assets/javascript/editor.js index 298526ab1f..8b2d5741b7 100644 --- a/phpBB/assets/javascript/editor.js +++ b/phpBB/assets/javascript/editor.js @@ -358,6 +358,12 @@ function getCaretPosition(txtarea) {  		if ($('#attach-panel').length) {  			phpbb.showDragNDrop(textarea);  		} + +		$('textarea').on('keydown', function (e) { +			if (e.which === 13 && e.metaKey) { +				$(this).closest('form').submit(); +			} +		});  	});  })(jQuery);  | 
