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
879b2b38
Commit
879b2b38
authored
Oct 14, 2020
by
Alexander Lohnau
💬
Committed by
Nate Graham
Oct 16, 2020
Browse files
Close KRunner if query is empty and enter is pressed
FEATURE: 211225
FIXED-IN: 5.21
parent
07992bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lookandfeel/contents/runcommand/RunCommand.qml
View file @
879b2b38
...
...
@@ -171,8 +171,16 @@ ColumnLayout {
}
Keys.onUpPressed
:
move_up
()
Keys.onDownPressed
:
move_down
()
Keys.onEnterPressed
:
results
.
runCurrentIndex
(
event
)
Keys.onReturnPressed
:
results
.
runCurrentIndex
(
event
)
function
closeOrRun
(
event
)
{
// Close KRunner if no text was typed and enter was pressed, FEATURE: 211225
if
(
!
root
.
query
)
{
runnerWindow
.
visible
=
false
}
else
{
results
.
runCurrentIndex
(
event
)
}
}
Keys.onEnterPressed
:
closeOrRun
(
event
)
Keys.onReturnPressed
:
closeOrRun
(
event
)
Keys.onEscapePressed
:
{
runnerWindow
.
visible
=
false
...
...
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