Commit e82d84cf authored by Yari Polla's avatar Yari Polla Committed by Devin Lin
Browse files

homescreens/halcyon: add Meta key support

parent 8522363c
......@@ -39,6 +39,26 @@ MobileShell.HomeScreen {
}
}
Plasmoid.onActivated: {
// Always close action drawer
if (MobileShell.TopPanelControls.actionDrawerVisible) {
MobileShell.TopPanelControls.closeActionDrawer();
}
// there's a couple of steps:
// - minimize windows (only if we are in an app)
// - open app drawer
// - close app drawer and, if necessary, restore windows
if (!plasmoid.nativeInterface.showingDesktop && !MobileShell.HomeScreenControls.homeScreenVisible) {
plasmoid.nativeInterface.showingDesktop = true;
} else if (homescreen.page == 0) {
homescreen.page = 1;
} else {
plasmoid.nativeInterface.showingDesktop = false;
homescreen.page = 0;
}
}
// homescreen component
contentItem: Item {
HomeScreen {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment