Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
c660d4c9
Commit
c660d4c9
authored
Sep 25, 2022
by
Yari Polla
Committed by
Devin Lin
Oct 01, 2022
Browse files
homescreens: also close the search widget with Meta key
parent
47b006ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/widgets/krunner/KRunnerWidget.qml
View file @
c660d4c9
...
...
@@ -58,6 +58,7 @@ Item {
readonly
property
real
closedContentY
:
PlasmaCore
.
Units
.
gridUnit
*
5
readonly
property
real
openedContentY
:
0
readonly
property
real
openFactor
:
Math
.
max
(
0
,
Math
.
min
(
1
,
1
-
flickable
.
contentY
/
closedContentY
))
readonly
property
bool
isOpen
:
openFactor
!=
0
Rectangle
{
anchors.fill
:
parent
...
...
containments/homescreens/folio/package/contents/ui/main.qml
View file @
c660d4c9
...
...
@@ -46,6 +46,11 @@ MobileShell.HomeScreen {
MobileShell
.
TopPanelControls
.
closeActionDrawer
();
}
// Always close the search widget as well
if
(
searchWidget
.
isOpen
)
{
searchWidget
.
close
();
}
// there's a couple of steps:
// - minimize windows (only if we are in an app)
// - open app drawer
...
...
containments/homescreens/halcyon/package/contents/ui/main.qml
View file @
c660d4c9
...
...
@@ -45,6 +45,11 @@ MobileShell.HomeScreen {
MobileShell
.
TopPanelControls
.
closeActionDrawer
();
}
// Always close the search widget as well
if
(
search
.
isOpen
)
{
search
.
close
();
}
// there's a couple of steps:
// - minimize windows (only if we are in an app)
// - open app drawer
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment