Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by crw on Dec 10, 2008 12:38
open dhtmlx forum
catching enter

Hello,

I have a custom excell type that creates a text area on edit

It works fine, but I would like to allow insertion of new lines via the enter key like txt area does. How would I allow this?

Thank you.
Answer posted by Support on Dec 11, 2008 05:12
You can assing
a) an onkeydown event handler to the custom textarea control, and block its propogation ( (e||event).cancelBubble=true )
b) redefine logic of eneter key handling in grid
        grid._key_events.k13_0_0 = null;
it will block default logic, which closes active editor by enter key pressing.