[vlc-devel] [PATCH] qml: avoid sending pause event when switching to the fullplayer from the miniplayer
Pierre Lamot
pierre at videolabs.io
Thu Aug 1 15:00:18 CEST 2019
Unhandled keys are sent to hotkeys from the miniplayer on key pressed. The
album covers in the miniplayer acts like a button and perform the action on
key released. Hence a hotkey event was sent when pressing space.
---
modules/gui/qt/qml/player/MiniPlayer.qml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/gui/qt/qml/player/MiniPlayer.qml b/modules/gui/qt/qml/player/MiniPlayer.qml
index 8d8468bad3..784b5bacec 100644
--- a/modules/gui/qt/qml/player/MiniPlayer.qml
+++ b/modules/gui/qt/qml/player/MiniPlayer.qml
@@ -77,6 +77,11 @@ Utils.NavigableFocusScope {
onClicked: history.push(["player"], History.Go)
}
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Return || event.key === Qt.Key_Space) {
+ event.accepted = true
+ }
+ }
Keys.onReleased: {
if (!event.accepted && (event.key === Qt.Key_Return || event.key === Qt.Key_Space))
history.push(["player"], History.Go)
--
2.17.1
More information about the vlc-devel
mailing list