Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/SlingshotView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,18 @@ public class Slingshot.SlingshotView : Gtk.Bin, UnityClient {
}

private void search_entry_activated () {
if (modality == Modality.SEARCH_VIEW) {
search_view.activate_selection ();
if (modality != Modality.SEARCH_VIEW) {
return;
}

if (!search_entry.has_focus) {
// A row in the search view may have focus instead,
// so let the row itself handle the activation and do nothing here
// to prevent the selection from being activated twice
return;
}

search_view.activate_selection ();
}

private bool on_search_view_key_press (uint keyval, uint keycode, Gdk.ModifierType state) {
Expand Down