How to avoid CTRL-I acting as TAB?

General TRichView support forum. Please post your questions here
Post Reply
jorec
Posts: 3
Joined: Thu Jul 06, 2006 8:05 pm

How to avoid CTRL-I acting as TAB?

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Create an action or menu item with Ctrl+I shortcut.
Post Reply