From: APTX Date: Sun, 26 Feb 2017 23:28:57 +0000 (+0100) Subject: Add the most basic keyboard shortcuts X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=bb31d4fd9505557ae179514fa51da7c24b4fed58;p=aniplayer.git Add the most basic keyboard shortcuts --- 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"