Grab Default problem with Entry Widget

I have a dialog box with a entry widget and  2 buttons (OK, cancel)
I have set up so that the OK button  be  the default button using gtk_widget_grab_default(). This works fine if the entry widget doesn`t have the focus (i.e a return on the dialog box will tear it down)
But when i am typing text into the entry field and hit a return the dialog box doesn`t go away. The reason seems to be the entry widget consumes the key entry and sends a "activate" signal. 

Is this a known issue? Is there a work around ?

Any help is appreciated

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