You can use Event.ctrlKey which will return true if the ctrl key was pressed
during the event.

So you could do something like:

$("#myTextarea").bind("keypress", function(e) {
 if (e.keyCode == 13 && e.ctrlKey) {
   // do stuff
 }
});

13 is the code for Enter.

Cheers,

Chris
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to