Auto-Replace trigger keys

Edit Control v. 4.4 has new feature - AutoReplaceTrigger. This trigger is fired when certain keys are pressed. Developer can define list of these keys within the language definition with help of attribute of TriggersActivators like this:

TriggersActivators=" ;.=()"

It's all great and cool, but how can I fire trigger when user just press 'Enter'? I tried

TriggersActivators=" ;.=()\n"

with no success. :(

2 Replies

AD Administrator Syncfusion Team March 6, 2007 06:29 PM UTC

Hi Developer,

It is possible to fire the trigger when the 'Enter' key is pressed using the KeyDown event. I have attached a sample that illustrates this. Let me know if this meets your requirements.

Thank you for your patience.

Regards,
Ebenezer.P

rel='nofollow' href=http://www.syncfusion.com/Support/user/uploads/CS_fd99245e.zip>sample


DE Developer March 9, 2007 09:24 AM UTC

Yes! It works a treat, thanks a lot!

Loader.
Up arrow icon