Merge lp://qastaging/~brandontschaefer/unity/fix-860805 into lp://qastaging/unity
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1759 |
Proposed branch: | lp://qastaging/~brandontschaefer/unity/fix-860805 |
Merge into: | lp://qastaging/unity |
Diff against target: |
26 lines (+11/-1) 2 files modified
manual-tests/launcher.txt (+11/-0) plugins/unityshell/src/DashView.cpp (+0/-1) |
To merge this branch: | bzr merge lp://qastaging/~brandontschaefer/unity/fix-860805 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Review via email:
|
Commit message
Fix the dash so it gets keyboard focus the first time.
To post a comment you must log in.
The problem is in DashController: :SetupDashView( ). While making the new DashView it calls this "lens_bar_ ->Activate( "home.lens" );" which then it gets to this function, "nux::GetWindow Compositor( ).SetKeyFocusAr ea(search_ bar_->text_ entry() );" which should set up the key focus so you can type in the search bar.
This function is getting called before "window_ ->SetLayout( layout) " in DashController: :SetupDashView( ) which causes the first call to SetKeyFocusArea to not work as intended.
So when SetKeyFocus is called in DashController: :ShowDash( ) it just returns instead of setting the key focus. Removing that line of code in DashView allows for everything to finish getting setup; then when SetKeyFocusArea is call it sets that up correctly.