Commit aed33ffc authored by Shawn Rutledge's avatar Shawn Rutledge
Browse files

FileDialog: ensure that arrow keys can always navigate the file list


By default the file list should be focused so that arrow keys can be
used to select a file, and so that the list has a focused appearance.
But even when the list does not have focus, the up/down arrow keys
can still navigate the list because they are not accepted by any
other controls in this dialog.

Change-Id: Ie73bb187672cce86da0e5089d16a558af92414e9
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
Showing with 2 additions and 0 deletions
...@@ -54,6 +54,7 @@ AbstractFileDialog { ...@@ -54,6 +54,7 @@ AbstractFileDialog {
if (visible) { if (visible) {
view.needsWidthAdjustment = true view.needsWidthAdjustment = true
view.selection.clear() view.selection.clear()
view.focus = true
} }
} }
...@@ -151,6 +152,7 @@ AbstractFileDialog { ...@@ -151,6 +152,7 @@ AbstractFileDialog {
break break
} }
} }
Keys.forwardTo: [view.flickableItem]
SplitView { SplitView {
id: splitter id: splitter
......
Supports Markdown
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