Hello, i would like to check my form for shift-enter shift-enter should be allowed. On enter the form should submit.
$('chatText').addEvent('keydown',function(event){
if ((event.key=='enter') && (event.key!=16)) {
alert("ENTER");
}
});
This code do not take care of shift and allerts on enter and on shift-
enter.
whats wrong.
thanks for any help in advance
