From bb31d4fd9505557ae179514fa51da7c24b4fed58 Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 27 Feb 2017 00:28:57 +0100 Subject: [PATCH] Add the most basic keyboard shortcuts --- core/qml/PlayerControls.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/qml/PlayerControls.qml b/core/qml/PlayerControls.qml index ceabcf8..705cd3d 100644 --- a/core/qml/PlayerControls.qml +++ b/core/qml/PlayerControls.qml @@ -13,6 +13,19 @@ Row { fullscreenButton.checked = !fullscreenButton.checked; } + Action { + id: openAction + enabled: controlledPlayer + onTriggered: openButton.open() + shortcut: "ctrl+o" + } + Action { + id: togglePauseAction + enabled: controlledPlayer + onTriggered: controlledPlayer.togglePlay() + shortcut: "space" + } + OpenButton { id: openButton text: "Open" -- 2.52.0