[vlc-commits] qml: forward key events from the VideoSurface as hotkeys

Pierre Lamot git at videolan.org
Mon Oct 14 11:59:42 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Oct 10 14:37:06 2019 +0200| [ab4489220d2159f4f6b251660b336877d6b17665] | committer: Jean-Baptiste Kempf

qml: forward key events from the VideoSurface as hotkeys

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

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

 modules/gui/qt/qml/player/Player.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/qml/player/Player.qml b/modules/gui/qt/qml/player/Player.qml
index 07cd3a72b0..d91298ae3f 100644
--- a/modules/gui/qt/qml/player/Player.qml
+++ b/modules/gui/qt/qml/player/Player.qml
@@ -126,6 +126,8 @@ Utils.NavigableFocusScope {
                     || event.matches(StandardKey.Back)
                     || event.matches(StandardKey.Cancel)) {
                 toolbarAutoHide.toggleForceVisible()
+            } else {
+                rootWindow.sendHotkey(event.key, event.modifiers);
             }
         }
 



More information about the vlc-commits mailing list