[vlc-commits] [Git][videolan/vlc][master] qml: don't reset focus when reason is the same
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Mon Jan 10 15:13:28 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
55ace881 by Fatih Uzunoglu at 2022-01-10T14:55:03+00:00
qml: don't reset focus when reason is the same
- - - - -
1 changed file:
- modules/gui/qt/util/qml/Helpers.js
Changes:
=====================================
modules/gui/qt/util/qml/Helpers.js
=====================================
@@ -55,6 +55,9 @@ function get(dict, key, defaultValue) {
// NOTE: This allows us to force another 'reason' even when the item has activeFocus.
function enforceFocus(item, reason) {
+ if (item.activeFocus && item.focusReason === reason)
+ return
+
item.focus = false;
item.forceActiveFocus(reason);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/55ace88111b1fa9e547f5d6fe434dc11b78bb7d7
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/55ace88111b1fa9e547f5d6fe434dc11b78bb7d7
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list