Re: Key Press php-gtk1
| From: | Bernard Fouché | Date: | Tue, 16 Feb 2010 13:05:31 +0000 |
| Subject: | Re: Key Press php-gtk1 | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8475@lists.php.net to get a copy of this message | ||
Hi Brian.
If running X-windows, the 'xset' command ('xset -r') allows you to selectively disable auto-repeat.
If running Windows I guess there is probably some similar trick: I Googled a bit and found that page: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.framework&tid=7d1ba842-5589-4e88-accd-7ce0b679a08d&cat=&lang=&cr=&sloc=&p=1
Regards,
Bernard
Brian Stumm wrote:
First, I am still using php-gtk1. I'd like to make the move to v2 but do not have the luxury right now. I am looking to detect when keys are pressed (and held down) in php-gtk version 1. This is for a "two hand, no tie down" safety feature on our machines. Access to our machines is made possible by lifting the top of the machine using air cylinders. The air cylinders are controlled via an electric valve. To lower the top I need to require the user to press two keys on opposite sides of the keyboard and keep them depressed until the top closes completely. If they release before the top closes completely the top should go back up. Is there a way I can monitor key press and key release in version 1 of php-gtk?