Commit 7182cfd1 authored by Nate Graham's avatar Nate Graham

Refine search/filter field close behavior

parent bda62357
......@@ -247,6 +247,8 @@ ColumnLayout {
Accessible.role: Accessible.EditableText
placeholderText: i18n("Search for album name, artist, etc.")
Keys.onEscapePressed: persistentSettings.expandedFilterView = false;
},
Item {
width: elisaTheme.layoutHorizontalMargin
......@@ -278,6 +280,11 @@ ColumnLayout {
target: filterRow
opacity: 0.0
}
StateChangeScript {
// Focus main content view since that's probably what the user
// wants to interact with next
script: contentDirectoryView.forceActiveFocus();
}
},
State {
name: 'expanded'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment