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

Keeping keyboard focus (ie GtkCLists)



I have a GtkWidget (an event box) that I needs to keep
the keyboard focus after it recieves a GDK_EVENT_KEY_PRESS
or GDK_EVENT_KEY_RELEASE where the keyval is one of the
up, down, left, right arrows.

Normally this event is recieved but then the focus is
moved to the next or previous widget.

I tried putting a gtk_widget_grab_focus() right after
in the GdkEventKey handler but it dosen't work, the focus
still gets moved.

Any suggestions?


-- 
--
Sincerely,		    ,"-_			 \|/
-Capt. Taura M. 	    ,	O=__			--X--
.__			     ,_JNMNNEO=_		 /|\
OMNOUMmnne.		     {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 	      'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe	       '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.		   "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.		  __  7EMMMNNNNNWWWEEEEEEEOO.	  " .
NNMMMMWWWMMMWEINMMMNn		 "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
		  http://furry.ao.net/~learfox/






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