On Wed, 07 Nov 2007 14:00:25 +0700
somat <[EMAIL PROTECTED]> wrote:

> i used this to change the enter key to tab key :
> 
>   if Key = #13 then
>   begin
>        Key := #0;
>        SelectNext(ActiveControl, true, true);
>   end;
> 
> but i have some question, how about to change the shift+enter key to 
> shift+tab key.

Use OnKeyDown instead of OnKeyPress. OnKeyDown has a Shift parameter.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to