ubports / unity8

The operating environment for everywhere. Lomiri development has moved to https://gitlab.com/ubports/development/core/lomiri
https://lomiri.com/
GNU General Public License v3.0
723 stars 99 forks source link

Disable shortcuts when launcher is not available #379

Open kugiigi opened 3 years ago

kugiigi commented 3 years ago

This disables keyboard shortcuts when the launcher is disabled or not available.

i.e. Launcher is disabled in lock screen. Currently, swiping won't show the launcher if it's disabled in lock screen but keyboard shortcuts are still working.

UniversalSuperBox commented 3 years ago

This PR looks good to me, but I believe a unit test should be added to ensure that the shortcuts do not function when the shell is locked. This will ensure that we don't add this bug back in the future.