Commit 353371a6 authored by Graeme Gott's avatar Graeme Gott

Fix extra key press to select search items.

Closes #8
parent a0c65825
......@@ -148,6 +148,7 @@ void SearchPage::set_filter(const gchar* filter)
// Scroll to and select first result
if (found)
{
get_view()->set_cursor(path);
get_view()->select_path(path);
get_view()->scroll_to_path(path);
}
......
......@@ -712,13 +712,7 @@ gboolean WhiskerMenu::Window::on_key_press_event(GtkWidget* widget, GdkEvent* ev
GtkWidget* search = GTK_WIDGET(m_search_entry);
if ((widget == search) || (gtk_window_get_focus(m_window) == search))
{
GtkTreePath* path = page->get_view()->get_cursor();
if (path)
{
page->get_view()->select_path(path);
}
gtk_widget_grab_focus(view);
return true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment