RightAlt+V and RightAlt+X in TGet

RightAlt+V and RightAlt+X in TGet

Postby modicr » Tue Mar 07, 2006 4:46 pm

Hello!

Whenever I press RightAlt+V (for inserting @ on Slovenian keyboards) or
RightAltX in GET controls, the cursor jumps to the beginning of the GET.
I think that the bug lies in this code (tget.prg)

Code: Select all  Expand view  RUN
      case ( nKey == VK_INSERT .and. GetKeyState( VK_SHIFT ) ) .or. ;
           ( nKey == ASC("V") .and. GetKeyState( VK_CONTROL ) ) .or. ;
           ( nKey == ASC('X') .and. GetKeyState( VK_CONTROL ) )


because RightAlt means Ctrl-LeftAlt. Here it should be checked that Alt is not pressed down!

Regards, Roman
© I'm not patented!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Postby modicr » Thu Mar 09, 2006 1:45 pm

Hello!

I changed above code to
Code: Select all  Expand view  RUN
      case (( nKey == VK_INSERT .and. GetKeyState( VK_SHIFT ) ) .or. ;
           ( nKey == ASC("V") .and. GetKeyState( VK_CONTROL ) ) .or. ;
           ( nKey == ASC('X') .and. GetKeyState( VK_CONTROL ) )) .and. ;
           ! lAnd(nFlags, 2 ** 29)


and now it seems OK.
© I'm not patented!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Postby Antonio Linares » Thu Mar 09, 2006 5:51 pm

Roman,

Thanks! :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 15 guests