Hi, can I suggest you to use the More.Keyboard class? :)
try it here: http://jsfiddle.net/NKjoep/8PwFE/ -- Andrea On Thu, Mar 3, 2011 at 16:50, hamburger <[email protected]> wrote: > 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 > >
