Re: [gtk-list] Trapping keys in an entry widget

>  I'm trapping certain keys in an entry widget with a key_event callback
>  but I can't find a way to throw away the trapped key so that it isn't
>  sent to the entry widget after my callback is through. 

You have to stop the emission of the signal.

	gtk_signal_emit_stop_by_name (my_widget, "key_press_event");

You can look at the file selection widget to see how it blocks the Tab
key on the entry widget to do filename completion.


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