[vlc-commits] qml: forward every keys as HotKey when the Player Toolbar is hidden
Pierre Lamot
git at videolan.org
Thu Feb 20 13:56:50 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Feb 18 17:27:30 2020 +0100| [3c1dc733917176aa685724eb6e221cee31c87727] | committer: Jean-Baptiste Kempf
qml: forward every keys as HotKey when the Player Toolbar is hidden
navigation keys where blocked by the interface
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c1dc733917176aa685724eb6e221cee31c87727
---
modules/gui/qt/player/qml/Player.qml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index d8fd956866..9765f16ad0 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -44,6 +44,10 @@ Widgets.NavigableFocusScope {
if (event.accepted)
return
defaultKeyAction(event, 0)
+
+ //unhandled keys are forwarded as hotkeys
+ if (!event.accepted || controlBarView.state !== "visible")
+ rootWindow.sendHotkey(event.key, event.modifiers);
}
Keys.onReleased: {
@@ -54,10 +58,6 @@ Widgets.NavigableFocusScope {
} else {
defaultKeyReleaseAction(event, 0)
}
-
- //unhandled keys are forwarded as hotkeys
- if (!event.accepted)
- rootWindow.sendHotkey(event.key, event.modifiers);
}
navigationCancel: function() {
More information about the vlc-commits
mailing list