Merge lp:~stolowski/unity-2d/hud-focus-fix into lp:unity-2d
Proposed by
Paweł Stołowski
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Albert Astals Cid | ||||
Approved revision: | 1043 | ||||
Merged at revision: | 1040 | ||||
Proposed branch: | lp:~stolowski/unity-2d/hud-focus-fix | ||||
Merge into: | lp:unity-2d | ||||
Diff against target: |
112 lines (+18/-16) 3 files modified
shell/hud/Hud.qml (+10/-4) shell/hud/ResultItem.qml (+4/-4) tests/hud/hud-search-tests.rb (+4/-8) |
||||
To merge this branch: | bzr merge lp:~stolowski/unity-2d/hud-focus-fix | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Albert Astals Cid (community) | Approve | ||
Review via email: mp+100745@code.launchpad.net |
Commit message
[hud] Prevent search entry from stealing focus on mouse click, rendering up/down keys unusable.
Up/Down keys update currentIndex of resultsList. Changed color & width property code in ResultItem to report color/width based on whether it's current item, rather than relying on "selected" state of AbstractButton.
Description of the change
[hud] Prevent search entry from stealing focus on mouse click, rendering up/down keys unusable.
Up/Down keys update currentIndex of resultsList. Changed color & width property code in ResultItem
to report color/width based on whether it's current item, rather than relying on "selected" state
of AbstractButton.
To post a comment you must log in.
Wondering if equal(' false', TIMEOUT, "Result item ##{index+1} should not have focus") {
verify_
we can have something that tests the item is the current one (using that current property)?
Also you don't need focus: false since it's the default value, so you can just remove it I think (unless you want to explicitely have it there)