1
0
Fork 0

[UI] Cycle tracks and back/forward 5s keybinds added.

This commit is contained in:
Kitteh 2018-10-24 18:16:34 +01:00
parent ef77ee260a
commit 2db4c9246e

View file

@ -320,6 +320,8 @@ ApplicationWindow {
property string playPause: "K" property string playPause: "K"
property string forward10: "L" property string forward10: "L"
property string rewind10: "J" property string rewind10: "J"
property string forward5: "Right"
property string rewind5: "Left"
property string openFile: "Ctrl+O" property string openFile: "Ctrl+O"
property string openURI: "Ctrl+Shift+O" property string openURI: "Ctrl+Shift+O"
property string quit: "Ctrl+Q" property string quit: "Ctrl+Q"
@ -328,6 +330,10 @@ ApplicationWindow {
property string statsForNerds: "I" property string statsForNerds: "I"
property string forwardFrame: "." property string forwardFrame: "."
property string backwardFrame: "," property string backwardFrame: ","
property string cycleSub: "S"
property string cycleSubBackwards: "Shift+S"
property string cycleAudio: "A"
} }
MenuBar { MenuBar {
@ -430,6 +436,22 @@ ApplicationWindow {
updateControls() updateControls()
} }
shortcut: keybinds.forward10 shortcut: keybinds.forward10
}
Action {
text: "Rewind 5s"
onTriggered: {
player.command(["seek", "-5"])
updateControls()
}
shortcut: keybinds.rewind5
}
Action {
text: "Forward 5s"
onTriggered: {
player.command(["seek", "5"])
updateControls()
}
shortcut: keybinds.forward5
} }
Action { Action {
text: "Forward Frame" text: "Forward Frame"
@ -447,6 +469,27 @@ ApplicationWindow {
} }
shortcut: keybinds.backwardFrame shortcut: keybinds.backwardFrame
} }
Action {
text: "Cycle Subs"
onTriggered: {
player.command(["cycle", "sub"])
}
shortcut: keybinds.cycleSub
}
Action {
text: "Cycle Subs Backwards"
onTriggered: {
player.command(["cycle", "sub", "down"])
}
shortcut: keybinds.cycleSubBackwards
}
Action {
text: "Cycle Audio"
onTriggered: {
player.command(["cycle", "audio"])
}
shortcut: keybinds.cycleAudio
}
} }
Menu { Menu {