[vlc-commits] qml: forward unhandled keys press as hotkey in miniplayer
Pierre Lamot
git at videolan.org
Sun Jul 28 08:43:52 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jul 17 14:06:24 2019 +0200| [9c610328ff29e0be45be4a7ad48bea6cdbf09f63] | committer: Jean-Baptiste Kempf
qml: forward unhandled keys press as hotkey in miniplayer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c610328ff29e0be45be4a7ad48bea6cdbf09f63
---
modules/gui/qt/qml/player/MiniPlayer.qml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt/qml/player/MiniPlayer.qml b/modules/gui/qt/qml/player/MiniPlayer.qml
index 66abfcac97..8d8468bad3 100644
--- a/modules/gui/qt/qml/player/MiniPlayer.qml
+++ b/modules/gui/qt/qml/player/MiniPlayer.qml
@@ -183,5 +183,7 @@ Utils.NavigableFocusScope {
Keys.onPressed: {
if (!event.accepted)
defaultKeyAction(event, 0)
+ if (!event.accepted)
+ rootWindow.sendHotkey(event.key);
}
}
More information about the vlc-commits
mailing list