Page 1 of 1

How to avoid CTRL-I acting as TAB?

Posted: Fri Jul 07, 2006 6:51 pm
by jorec
How to avoid CTRL-I acting as TAB? The situation is: I put an 'OnKeyDown' event in a TRichViewEdit in order to intercept CTRL-I key and call 'ApplyStyleConversion' to put the italic efect. Its ok, but the cursor advances as if the TAB key where pressed. I donĀ“t want this behavior. I tried set the 'Key' parameter of 'OnKeyDown' event to '0' after calling 'ApplyStyleConversion' but to no avail: the cursor still advances. Is there some simple solution to this or should I appeal to hooks?

Thanks.

Joao.

Posted: Sat Jul 08, 2006 7:46 am
by Sergey Tkachenko
Create an action or menu item with Ctrl+I shortcut.