The contents of the search box will no longer be deleted on auto-focus

This commit is contained in:
Scoopta 2019-08-18 18:31:34 -07:00
parent 9c7641ccbc
commit 1eeba63c69

View File

@ -264,7 +264,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
break; break;
default: default:
if(!gtk_widget_has_focus(entry)) { if(!gtk_widget_has_focus(entry)) {
gtk_widget_grab_focus(entry); gtk_entry_grab_focus_without_selecting(GTK_ENTRY(entry));
} }
break; break;
} }