[Gambas-user] Button - Default Property - Doubt
vikram
austinium at ...43...
Tue Jan 4 07:44:56 CET 2011
Hi,
Thanks for the reply on the Spinbox issue :)
Heres another issue i faced recently, I had set the default property for a button on one of the forms of my project. This would allow the user to press the enter key instead of clicking the said button. Trouble is that even if another button has focus when the user presses Enter, the button with the default event set still gets called. With other controls this behavior is intended, for instance if the user presses enter while the focus is at a textbox the default button being called is what is expected, but if the user uses Tab to navigate to another button and then presses Enter then shouldn't that button's click function be executed?
I have attached a sample project for your reference.
Is there any way to avoid this?
OS: Debian Squeeze (GNOME)
GB.GTK component used.
Gambas version 2.21
Best Regards,
Vikram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DefaultButtonIssue.tar
Type: application/x-tar
Size: 7908 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110103/07c91bd2/attachment.tar>
More information about the User
mailing list