diff --git a/src/wofi.c b/src/wofi.c index 74f7926..eb418d2 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -264,7 +264,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) { break; default: if(!gtk_widget_has_focus(entry)) { - gtk_widget_grab_focus(entry); + gtk_entry_grab_focus_without_selecting(GTK_ENTRY(entry)); } break; }