Re: Key event on hidden window

From: Date: Fri, 20 Oct 2006 10:17:30 +0000
Subject: Re: Key event on hidden window
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7359@lists.php.net to get a copy of this message
Its only 1 window and that should be able to hidde/show simple... Yes, its only working on focus. Maybe there is an other signal that dont depends on focus? :) on Friday 20 October 2006 12:06, cohort wrote: > It seems to me that the event is being called only when that window is > in focus, so if you have a window that stays visible all the time (main > window?), you should set the 'on_key_press' handler to that window instead. > > Thomas Munz wrote: > > I have a GtkWindow where i have connected the function 'on_key_press' > > with the signal key_press_event. I want now, that the window gets > > Shown/displayed when i press the F12 Key. > > > > So in case the status is hidden and i press the F12, the function > > 'on_key_press' gets called and display the window again. In case it > > is displayed and i press the F12, the function 'on_key_press' will > > hidde the window. > > > > This works fine in case the window is shown. But in case the window > > is hidden the function is not called, means the key_press_event event > > is not called. > > Is it somehow possible to fix this, or to make a workarround for that?

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