Skip to content
Snippets Groups Projects
Commit a00c5e07 authored by Benjamin Arnaud's avatar Benjamin Arnaud
Browse files

qml/KeyNavigableListView: Fix the keyboard navigation scrolling

fix #26992
parent 8dff08a9
No related branches found
No related tags found
Loading
Pipeline #230148 passed with stages
in 25 minutes and 20 seconds
......@@ -240,6 +240,9 @@ ListView {
selectionUpdated(event.modifiers, oldIndex, newIndex);
// NOTE: If we skip this call the item might end up under the header.
positionViewAtIndex(currentIndex, ItemView.Contain);
// NOTE: We make sure we have the proper visual focus on components.
if (oldIndex < currentIndex)
Helpers.enforceFocus(currentItem, Qt.TabFocusReason);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment