Merge lp:~mzanetti/unity8/homekey-dash into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2739
Merged at revision: 2788
Proposed branch: lp:~mzanetti/unity8/homekey-dash
Merge into: lp:unity8
Prerequisite: lp:~mzanetti/unity8/appdrawer-improvements
Diff against target: 34 lines (+12/-1)
2 files modified
qml/Shell.qml (+1/-1)
tests/qmltests/tst_Shell.qml (+11/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/homekey-dash
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Needs Fixing
Lukáš Tinkl (community) Approve
Review via email: mp+315355@code.launchpad.net

Commit message

Adjust home key to still focus the dash instead of messing with the drawer

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
see prereq
 * Did you perform an exploratory manual test run of your code change and any related functionality?
yes
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

I think pressign Super key alone should also close the appdrawer (when it's open), wdyt?

Otherwise the fix works fine

review: Needs Information
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

Oh and, needs a new/adjusted test

review: Needs Fixing
Revision history for this message
Michael Zanetti (mzanetti) wrote :

> I think pressign Super key alone should also close the appdrawer (when it's
> open), wdyt?
>
> Otherwise the fix works fine

the launcher.fadeOut() is still there, that also hides the drawer

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2738
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2996/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3900
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2286
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2286
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3928
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3773/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3773/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3773/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3773/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3773/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3773
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3773/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2996/rebuild

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

> > I think pressign Super key alone should also close the appdrawer (when it's
> > open), wdyt?
> >
> > Otherwise the fix works fine
>
> the launcher.fadeOut() is still there, that also hides the drawer

Yup, it works now correctly

lp:~mzanetti/unity8/homekey-dash updated
2739. By Michael Zanetti

add a test

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Oh and, needs a new/adjusted test

test added

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

Works fine, test passes locally, waiting on CI with the top approval.

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2739
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2998/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3902
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2288
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2288
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3930
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3776/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3776/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3776/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3776/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3776/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3776
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3776/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2998/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Shell.qml'
2--- qml/Shell.qml 2017-01-23 14:25:44 +0000
3+++ qml/Shell.qml 2017-01-23 14:25:44 +0000
4@@ -240,7 +240,7 @@
5 // Ignore when greeter is active, to avoid pocket presses
6 if (!greeter.active) {
7 launcher.fadeOut();
8- shell.showHome();
9+ ApplicationManager.requestFocusApplication("unity8-dash");
10 }
11 }
12 onTouchBegun: { cursor.opacity = 0; }
13
14=== modified file 'tests/qmltests/tst_Shell.qml'
15--- tests/qmltests/tst_Shell.qml 2017-01-23 14:25:44 +0000
16+++ tests/qmltests/tst_Shell.qml 2017-01-23 14:25:44 +0000
17@@ -1374,6 +1374,17 @@
18 verify(coverPage.shown);
19 }
20
21+ function test_physicalHomeKeyPressFocusesDash() {
22+ loadShell("phone");
23+
24+ var galleryApp = ApplicationManager.startApplication("gallery-app");
25+ tryCompare(ApplicationManager, "focusedApplicationId", "gallery-app");
26+
27+ var windowInputMonitor = findInvisibleChild(shell, "windowInputMonitor");
28+ windowInputMonitor.homeKeyActivated();
29+ tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
30+ }
31+
32 function test_tabletLogin_data() {
33 return [
34 {tag: "auth error", user: "auth-error", loggedIn: false, password: ""},

Subscribers

People subscribed via source and target branches