Enter + shift key to add a new line in chat

pull/1/head
yflory 7 years ago
parent 331b4dddea
commit 140964478e

@ -338,7 +338,7 @@ define([
});*/
var onKeyDown = function (e) {
if (e.keyCode === 13) {
if (e.ctrlKey) {
if (e.ctrlKey || e.shiftKey) {
var val = this.value;
if (typeof this.selectionStart === "number" && typeof this.selectionEnd === "number") {
var start = this.selectionStart;

Loading…
Cancel
Save