Tab can now be used to cycle between search results

This commit is contained in:
Scoopta 2019-10-07 02:50:26 -07:00
parent c6cf131a94
commit 496e075b0e

View File

@ -355,6 +355,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
gtk_entry_grab_focus_without_selecting(GTK_ENTRY(entry)); gtk_entry_grab_focus_without_selecting(GTK_ENTRY(entry));
} }
break; break;
case GDK_KEY_Tab:
case GDK_KEY_Down: case GDK_KEY_Down:
if(gtk_widget_has_focus(entry) || gtk_widget_has_focus(scroll)) { if(gtk_widget_has_focus(entry) || gtk_widget_has_focus(scroll)) {
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);