Re: [gtk-list] key_release_event



>   has anyone had any luck in binding "key_release_event" to a handler?
> I use the perl bindings, were 
> 
>     signal_connect $window "key_press_event", sub { 
>        print "A key has been pressed!\n" 
>     } ;
> 
> works fine. However, the same with key_release ,
> 
>     signal_connect $window "key_release_event", sub { 
>        print "A key has been released!\n" 
>     } ;

	You may need to set the event mask first...  In c you would do this like:
gtk_widget_set_events(win, GDK_KEY_RELEASE_MASK);

	Then register your callback and see if it works for you that way.  Hope that 
helps,

	-dath

-- 
________________________________________________________
Daniel Thom			 File Systems Technician
Work:  dath@sequent.com		 (503) 578-5764
Home:  dath@teleport.com
http://www.teleport.com/~dath/  >>>UNDER CONSTRUCTION<<<
--------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]