mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreens/halcyon: add Meta key support
This commit is contained in:
parent
66a0253894
commit
eec2ddcbc8
1 changed files with 20 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue