firstly English isn't my native language, sorry if I have any mistakes.
There is message sending problem in the function, I've played with Jquery codes but I couldn't fix it.
When I press the Enter, message reach to receiver, that's good. But when I press the Shift with Enter, message reach to receiver again, I want to create new line when press the both keys.
Jquery codes:
$(document).ready(function() {
$('input#chat').bind('keydown', function(e) {
if(e.keyCode==13) {
// Store the message into var
var message = $('input#chat').val();
var id = $('#chat').attr('class');
if(message) {
// Remove chat errors if any
$('.chat-error').remove();
// Show the progress animation
$('.message-loader').show();
// Reset the chat input area
document.getElementById("chat").style.height = "25px";
$('input#chat').val('');
e.keyCode === 13will be true and thus effectively be the same as pressing enter. An idea is to handle modifiers before this. - jdphenix