Skip to content

Commit

Permalink
Merge pull request #570 from porridgewithraisins/master
Browse files Browse the repository at this point in the history
trial: opening first result on Enter
  • Loading branch information
cboxdoerfer authored Oct 6, 2024
2 parents f0f6ec4 + cae0e73 commit f71da81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fsearch_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ on_search_entry_activate(GtkButton *widget, gpointer user_data) {
if (db_view_get_num_entries(win->result_view->database_view) > 0) {
if (db_view_get_num_selected(win->result_view->database_view) < 1) {
db_view_select(win->result_view->database_view, 0);
fsearch_window_actions_update(win);
GActionGroup *group = G_ACTION_GROUP(win);
g_action_group_activate_action(group, "open", NULL);
}
gtk_widget_grab_focus(GTK_WIDGET(win->result_view->list_view));
}
Expand Down

0 comments on commit f71da81

Please sign in to comment.