[vlc-devel] [PATCH 3/4] qml: player, don't forward accepted key events to the hotkeys
Pierre Lamot
pierre at videolabs.io
Tue Jul 30 10:53:41 CEST 2019
---
modules/gui/qt/qml/player/Player.qml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt/qml/player/Player.qml b/modules/gui/qt/qml/player/Player.qml
index 7b72ee6c36..6ae036ec21 100644
--- a/modules/gui/qt/qml/player/Player.qml
+++ b/modules/gui/qt/qml/player/Player.qml
@@ -146,6 +146,8 @@ Utils.NavigableFocusScope {
onActionCancel: rootPlayer.actionCancel(index)
Keys.onPressed: {
+ if (event.accepted)
+ return
if (event.key === Qt.Key_Menu) {
toolbarAutoHide.toggleForceVisible()
} else {
@@ -244,6 +246,8 @@ Utils.NavigableFocusScope {
//unhandled keys are forwarded as hotkeys
Keys.onPressed: {
+ if (event.accepted)
+ return
if (event.key === Qt.Key_Menu)
toolbarAutoHide.toggleForceVisible()
else
--
2.17.1
More information about the vlc-devel
mailing list