Merge lp:~ambientrevolution/scratch/1078826 into lp:~elementary-apps/scratch/scratch

Proposed by Justin S
Status: Merged
Merged at revision: 1154
Proposed branch: lp:~ambientrevolution/scratch/1078826
Merge into: lp:~elementary-apps/scratch/scratch
Diff against target: 15 lines (+3/-0)
1 file modified
src/Widgets/SearchManager.vala (+3/-0)
To merge this branch: bzr merge lp:~ambientrevolution/scratch/1078826
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+176823@code.launchpad.net

Description of the change

Just prepending <Shift> when the shift gdk event is present in the search box.

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/SearchManager.vala'
2--- src/Widgets/SearchManager.vala 2013-06-11 04:36:42 +0000
3+++ src/Widgets/SearchManager.vala 2013-07-24 23:51:27 +0000
4@@ -363,8 +363,11 @@
5 if (search_entry.text == "")
6 return false;
7 string key = Gdk.keyval_name (event.keyval);
8+ if ( event.state == Gdk.ModifierType.SHIFT_MASK )
9+ key = "<Shift>" + key;
10 switch (key)
11 {
12+ case "<Shift>Return":
13 case "Up":
14 search_previous ();
15 return true;

Subscribers

People subscribed via source and target branches