Re: Key-release-event

From: Date: Thu, 27 Jan 2005 21:44:06 +0000
Subject: Re: Key-release-event
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5503@lists.php.net to get a copy of this message
Christian Weiske wrote:
You could set a variable to "false", set a timeout (500ms?) when getting a key-release-event, and if a variable hasn't been set to true due to a key-press-event, you stop.
Would the auto-repeated key press be recognized as a pending event? If it is then you could do something like this: function keyReleased() {
    if (!gtk::events_pending()) {
// Do your key release stuff here.
    }
    // Else just don't do anything because there is
    // still a pending event (aka autorepeated key-press)
} $window->connect('key-release-event', 'keyReleased'); -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks

« previous php.gtk.general (#5503) next »