Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
20605811
Commit
20605811
authored
Mar 17, 2022
by
Nate Graham
Browse files
Focus search field when activated with keyboard shortcut again
This accidentally got lost in
8a4f3930
.
parent
30d0ade9
Pipeline
#151861
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/qml/NavigationActionBar.qml
View file @
20605811
...
...
@@ -283,10 +283,7 @@ Item {
icon.name
:
'
search
'
checkable
:
true
checked
:
expandedFilterView
onClicked
:
{
persistentSettings
.
expandedFilterView
=
!
persistentSettings
.
expandedFilterView
filterTextInput
.
forceActiveFocus
()
}
onClicked
:
persistentSettings
.
expandedFilterView
=
!
persistentSettings
.
expandedFilterView
;
}
]
}
...
...
@@ -366,6 +363,11 @@ Item {
duration
:
Kirigami
.
Units
.
longDuration
}
}
onVisibleChanged
:
{
if
(
visible
)
{
filterTextInput
.
forceActiveFocus
();
}
}
contentItems
:
[
Kirigami.SearchField
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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