Merge lp:~aacid/unity-2d/unity-2d-shell_launcher_dash_focus_loss into lp:~unity-2d-team/unity-2d/unity-2d-shell

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 956
Merge reported by: Albert Astals Cid
Merged at revision: not available
Proposed branch: lp:~aacid/unity-2d/unity-2d-shell_launcher_dash_focus_loss
Merge into: lp:~unity-2d-team/unity-2d/unity-2d-shell
Diff against target: 24 lines (+2/-1)
2 files modified
shell/app/shelldeclarativeview.cpp (+1/-0)
tests/places/places-tests.rb (+1/-1)
To merge this branch: bzr merge lp:~aacid/unity-2d/unity-2d-shell_launcher_dash_focus_loss
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+91628@code.launchpad.net

Description of the change

Make sure the qml view has the focus when invoking home

Fixes "Check focus goes to dash on Super when launcher menu is open"

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Can you write a test for this please? If not automated, then manual.

review: Needs Fixing
954. By Albert Astals Cid

Merge

955. By Albert Astals Cid

Merge

956. By Albert Astals Cid

This test works now :-)

Revision history for this message
Albert Astals Cid (aacid) wrote :

Sorry, forgot to mention there was a test in the works. You've approved and it has been merged it already, now you can see the xtest → test

Revision history for this message
Gerry Boland (gerboland) wrote :

Ah perfect, approved!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shell/app/shelldeclarativeview.cpp'
2--- shell/app/shelldeclarativeview.cpp 2012-02-06 12:07:47 +0000
3+++ shell/app/shelldeclarativeview.cpp 2012-02-06 12:31:06 +0000
4@@ -264,6 +264,7 @@
5 setDashActive(false);
6 forceDeactivateWindow();
7 } else {
8+ setFocus();
9 Q_EMIT activateHome();
10 }
11 }
12
13=== modified file 'tests/places/places-tests.rb'
14--- tests/places/places-tests.rb 2012-02-06 12:25:53 +0000
15+++ tests/places/places-tests.rb 2012-02-06 12:31:06 +0000
16@@ -294,7 +294,7 @@
17 # * None
18 # References
19 # * None
20- xtest "Check focus goes to dash on Super when launcher menu is open" do
21+ test "Check focus goes to dash on Super when launcher menu is open" do
22 XDo::Keyboard.alt_F1
23 verify_equal( 0, TIMEOUT, 'Launcher hiding when Alt+F1 pressed' ) {
24 @app.Launcher()['x_absolute'].to_i

Subscribers

People subscribed via source and target branches