[vlc-commits] [Git][videolan/vlc][master] qml/KeyNavigableListView: Fix the keyboard navigation scrolling

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Jun 10 18:04:49 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
a00c5e07 by Benjamin Arnaud at 2022-06-10T18:31:00+02:00
qml/KeyNavigableListView: Fix the keyboard navigation scrolling

fix #26992

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/KeyNavigableListView.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/KeyNavigableListView.qml
=====================================
@@ -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);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a00c5e0744a169ef73abae92293157a5aeb377b9

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a00c5e0744a169ef73abae92293157a5aeb377b9
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list