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