Enter + shift key to add a new line in chat

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

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

Loading…
Cancel
Save