Merge lp:~parnold-x/slingshot/fix-1455991 into lp:~elementary-pantheon/slingshot/trunk

Proposed by Djax on 2015-05-25
Status: Merged
Approved by: Cody Garver on 2015-05-29
Approved revision: 534
Merged at revision: 537
Proposed branch: lp:~parnold-x/slingshot/fix-1455991
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 17 lines (+7/-0)
1 file modified
src/Widgets/SearchView.vala (+7/-0)
To merge this branch: bzr merge lp:~parnold-x/slingshot/fix-1455991
Reviewer Review Type Date Requested Status
elementary Pantheon team 2015-05-25 Pending
Review via email: mp+260037@code.launchpad.net

Commit message

Reset search highlight to first result when search entry is empty (lp:1455991)

Description of the change

Reset search highlight to first result when search entry is empty.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Widgets/SearchView.vala'
2--- src/Widgets/SearchView.vala 2015-03-24 15:20:48 +0000
3+++ src/Widgets/SearchView.vala 2015-05-25 09:40:29 +0000
4@@ -99,6 +99,13 @@
5 box.pack_start (context_fixed, false);
6
7 add_with_viewport (box);
8+
9+ parent.search_entry.key_press_event.connect ((e) => {
10+ if (parent.search_entry.text == "")
11+ _selected = 0;
12+
13+ return false;
14+ });
15 }
16
17 public void set_results (Gee.List<Synapse.Match> matches, string search_term) {

Subscribers

People subscribed via source and target branches