[vlc-commits] [Git][videolan/vlc][master] qml: forward key events to custom navigation by default in `RadioButtonExt`
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Thu Nov 13 18:18:52 UTC 2025
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
8905cb28 by Fatih Uzunoglu at 2025-11-13T19:51:02+02:00
qml: forward key events to custom navigation by default in `RadioButtonExt`
So that custom navigation works without having need to set this
each time wherever the control is reused.
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/RadioButtonExt.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/RadioButtonExt.qml
=====================================
@@ -20,6 +20,7 @@
import QtQuick
import QtQuick.Templates as T
+import VLC.MainInterface
import VLC.Style
// Based on Qt Quick Basic Style:
@@ -35,6 +36,11 @@ T.RadioButton {
padding: VLCStyle.margin_xxsmall
spacing: VLCStyle.margin_xxsmall
+ Keys.priority: Keys.AfterItem
+ Keys.onPressed: function(event) {
+ Navigation.defaultKeyAction(event)
+ }
+
readonly property ColorContext colorContext: ColorContext {
id: theme
colorSet: ColorContext.ButtonStandard
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8905cb28a04647f7ea03433944040aac0eb29ebb
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8905cb28a04647f7ea03433944040aac0eb29ebb
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