Fixed the down arrow key skipping the first entry when inside of the search bar

This commit is contained in:
Scoopta 2019-08-28 21:55:30 -07:00
parent e84ebfc943
commit c814c813c5

View File

@ -482,6 +482,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
GtkFlowBoxChild* child = gtk_flow_box_get_child_at_pos(GTK_FLOW_BOX(inner_box), 0, 0); GtkFlowBoxChild* child = gtk_flow_box_get_child_at_pos(GTK_FLOW_BOX(inner_box), 0, 0);
gtk_widget_grab_focus(GTK_WIDGET(child)); gtk_widget_grab_focus(GTK_WIDGET(child));
gtk_flow_box_select_child(GTK_FLOW_BOX(inner_box), child); gtk_flow_box_select_child(GTK_FLOW_BOX(inner_box), child);
return TRUE;
} }
break; break;
default: default: