Skip to content
Snippets Groups Projects
Commit c0756e0b authored by Benjamin Arnaud's avatar Benjamin Arnaud Committed by Hugo Beauzée-Luyssen
Browse files

qml/Player: Add 'preferHotkeys' implementation

parent 76eccbfb
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,12 @@ FocusScope {
// NOTE: We force the night theme when playing a video.
readonly property VLCColors colors: (MainCtx.hasEmbededVideo) ? VLCStyle.nightColors
: VLCStyle.colors
: VLCStyle.colors
// Events
Component.onCompleted: MainCtx.preferHotkeys = true
Component.onDestruction: MainCtx.preferHotkeys = false
Keys.priority: Keys.AfterItem
Keys.onPressed: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment