How to get rid of the auto-focus function



In a GtkWindow, I put three GtkEntry into that.

I need the key event, so I use
    gtk_widget_set_event(GtkWIndow, GDK_KEY_PRESS_EVENT |
GDK_KEY_RELEASE_EVENT)
to set the key event for GtkWIndow.

But, when I run the application, if I push the down arrow, left arrow,
right arrow, up arrow key on the keyboard, those GtkEntrys will be auto
focused.

I don't want that function, how I can get rid of that??

If someone knows, please teach me ASAP, Thanks



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