[vlc-commits] qml: player, don't forward accepted key events to the hotkeys

Pierre Lamot git at videolan.org
Tue Jul 30 17:42:55 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Jul 30 10:53:41 2019 +0200| [901c2897723756f4c8ac76fa0c2676752b71837a] | committer: Jean-Baptiste Kempf

qml: player, don't forward accepted key events to the hotkeys

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=901c2897723756f4c8ac76fa0c2676752b71837a
---

 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



More information about the vlc-commits mailing list