Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
613b3073 by Benjamin Arnaud at 2021-09-16T09:32:21+00:00
qml/KeyNavigableListView: Use enforceFocus in 'pressed' event
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/KeyNavigableListView.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/KeyNavigableListView.qml
=====================================
@@ -259,14 +259,11 @@ FocusScope {
selectionUpdated(event.modifiers, oldIndex, newIndex);
- // FIXME: This clears the focus so we can pass the right
focusReason.
- currentItem.focus = false;
-
// NOTE: We make sure we have the proper visual focus on
components.
if (oldIndex < currentIndex)
- currentItem.forceActiveFocus(Qt.TabFocusReason);
+ Helpers.enforceFocus(currentItem, Qt.TabFocusReason);
else
- currentItem.forceActiveFocus(Qt.BacktabFocusReason);
+ Helpers.enforceFocus(currentItem, Qt.BacktabFocusReason);
}
if (!event.accepted) {
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/613b30731e154279123b536cf866365aef5d2427
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/613b30731e154279123b536cf866365aef5d2427
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits