The contents of the search box will no longer be deleted on auto-focus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user