[Gambas-user] KeyPress event is fired twice (martin p cristia)

martin p cristia tercoide at hotmail.com
Thu Jun 24 20:38:09 CEST 2021


Found a workaround: there has to be a dummy GLArea_Keypress sub and the 
event fires only once in Form_KeyPress

Public Sub Form_KeyPress()

   Debug Key.Text

End

Public Sub GLArea1_KeyPress()

   ' Debug "GLArea", Key.Text

End

El 6/23/21 a las 2:35 PM, user-request at lists.gambas-basic.org escribió:
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 Jun 2021 10:59:12 -0300
> From: martin p cristia <tercoide at hotmail.com>
> To: Gambas mailing list <user at lists.gambas-basic.org>
> Subject: [Gambas-user] KeyPress event is fired twice
> Message-ID:
> 	<DM6PR12MB39462B2C8EAEF95F4D6B9C54C8089 at DM6PR12MB3946.namprd12.prod.outlook.com>
> 	
> Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
> To reproduce, click on the GLArea and then press a key. If the Form has
> the focus, it's ok. See output in console.
>
> [

-- 
Saludos

Ing. Martin P Cristia



More information about the User mailing list