[Gambas-user] F2 instead of F1

Gianluigi bagonergi at gmail.com
Tue Apr 24 16:51:48 CEST 2018


2018-04-24 16:25 GMT+02:00 Gianluigi <bagonergi at gmail.com>:

>
>
> 2018-04-24 16:16 GMT+02:00 Benoît Minisini <g4mba5 at gmail.com>:
>
>> Le 24/04/2018 à 16:00, Gianluigi a écrit :
>>
>>>
>>> 2018-04-22 20:19 GMT+02:00 Gianluigi <bagonergi at gmail.com <mailto:
>>> bagonergi at gmail.com>>:
>>>
>>>     The attached project summarizes the procedure used in seHelpBuilder
>>>     to call for help.
>>>     Here F1 is read correctly.
>>>     Why I always get F2 in seHelpBuider Application_KeyPress?
>>>
>>>     Regards
>>>     Gianluigi
>>>
>>>
>>>  From two weeks I'm breaking my head on this problem.
>>> If I try with a small example (see previous mail) the code works, if I
>>> transport it to seHelpBuilder no.
>>> I tried to move the code from the main module to the main window without
>>> result.
>>> I tried to change properties with a function, nothing.
>>> It seems like a bug when reading the function keys, because the first
>>> routine that start on the key can only be Application_KeyPress of the main
>>> module and it always reads "Key.F2" when I act on the F1 key.
>>> I thought it could be the IDE's fault, but I get the same behavior even
>>> in the executable.
>>>
>>> Help would be greatly appreciated.
>>> Regards
>>> Gianluigi
>>>
>>>
>> No idea at the moment, but don't use Application_KeyPress.
>>
>> You should not decide for the user of your library which shortcut he
>> wants to use.
>>
>> --
>> Benoît Minisini
>>
>>
> Ok I move the code on the main window.
> But I fear that it will continue to not work
> Thanks for the explanation.
>
> Regards
> Gianluigi
>
>

Hi Benoit,
I updated as per your suggestions, the malfunction persists.

Regards
Gianluigi


> --------------------------------------------------
>>
>> This is the Gambas Mailing List:
>> https://lists.gambas-basic.org/listinfo/user
>>
>> Search the list:
>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>>
>> Hosted by https://www.hostsharing.net
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180424/cbff3d16/attachment.html>


More information about the User mailing list