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 Workspace
Commits
faffe49e
Commit
faffe49e
authored
Jan 11, 2022
by
Noah Davis
🌵
Browse files
systemtray HiddenItemsView: allow Return, Enter, Space and Select to activate items
parent
306c0d6f
Pipeline
#128709
passed with stage
in 8 minutes and 58 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
applets/systemtray/package/contents/ui/HiddenItemsView.qml
View file @
faffe49e
...
...
@@ -61,5 +61,19 @@ PlasmaComponents3.ScrollView {
}
else
if
(
!
activeFocus
&&
currentIndex
>=
0
)
{
currentIndex
=
-
1
}
Keys.priority
:
Keys
.
AfterItem
Keys.onPressed
:
if
(
currentItem
&&
currentItem
.
item
)
{
switch
(
event
.
key
)
{
case
Qt.Key_Return
:
case
Qt.Key_Enter
:
case
Qt.Key_Space
:
case
Qt.Key_Select
:
currentItem
.
item
.
activated
(
Qt
.
point
(
width
/
2
,
height
/
2
))
event
.
accepted
=
true
break
default
:
break
}
}
}
}
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