~aleteoryx/muditaos

ca9579a252e7ea6186b2dedb4dd6f66309eb0d93 — Dawid Wojtas 3 years ago bd1222f
[BH-1590] Light press ends the Power Nap

The deep press doesn't have any effect on the power nap application.
At the end of the power nap, the deep press change only alarm mode.
M products/BellHybrid/apps/application-bell-powernap/windows/PowerNapProgressWindow.cpp => products/BellHybrid/apps/application-bell-powernap/windows/PowerNapProgressWindow.cpp +1 -2
@@ 100,8 100,7 @@ namespace gui
    {
        if (inputEvent.isShortRelease()) {
            const auto key = mapKey(inputEvent.getKeyCode());
            if (presenter->isNapFinished() &&
                (key == KeyMap::LightPress || key == KeyMap::DeepPressDown || key == KeyMap::DeepPressUp)) {
            if (presenter->isNapFinished() && key == KeyMap::LightPress) {
                presenter->endNap();
                return true;
            }