[UI] Fix keybind names, added frame skip keys.
This commit is contained in:
parent
4f5b8487a5
commit
e64319685a
|
@ -317,15 +317,17 @@ ApplicationWindow {
|
||||||
Settings {
|
Settings {
|
||||||
id: keybinds
|
id: keybinds
|
||||||
category: "Keybinds"
|
category: "Keybinds"
|
||||||
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 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"
|
||||||
property string Fullscreen: "F"
|
property string fullscreen: "F"
|
||||||
property string Tracks: "Ctrl+T"
|
property string tracks: "Ctrl+T"
|
||||||
property string StatsForNerds: "I"
|
property string statsForNerds: "I"
|
||||||
|
property string forwardFrame: "Period"
|
||||||
|
property string backwardFrame: "Comma"
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuBar {
|
MenuBar {
|
||||||
|
@ -378,18 +380,18 @@ ApplicationWindow {
|
||||||
Action {
|
Action {
|
||||||
text: "Open File"
|
text: "Open File"
|
||||||
onTriggered: fileDialog.open()
|
onTriggered: fileDialog.open()
|
||||||
shortcut: keybinds.OpenFile
|
shortcut: keybinds.openFile
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: "Open URI/URL"
|
text: "Open URI/URL"
|
||||||
onTriggered: loadDialog.open()
|
onTriggered: loadDialog.open()
|
||||||
shortcut: keybinds.OpenURI
|
shortcut: keybinds.openURI
|
||||||
|
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: "Exit"
|
text: "Exit"
|
||||||
onTriggered: Qt.quit()
|
onTriggered: Qt.quit()
|
||||||
shortcut: keybinds.Quit
|
shortcut: keybinds.quit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,7 +413,7 @@ ApplicationWindow {
|
||||||
player.command(["cycle", "pause"])
|
player.command(["cycle", "pause"])
|
||||||
updateControls()
|
updateControls()
|
||||||
}
|
}
|
||||||
shortcut: String(keybinds.PlayPause)
|
shortcut: String(keybinds.playPause)
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: "Rewind 10s"
|
text: "Rewind 10s"
|
||||||
|
@ -419,7 +421,7 @@ ApplicationWindow {
|
||||||
player.command(["seek", "-10"])
|
player.command(["seek", "-10"])
|
||||||
updateControls()
|
updateControls()
|
||||||
}
|
}
|
||||||
shortcut: keybinds.Rewind10
|
shortcut: keybinds.rewind10
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: "Forward 10s"
|
text: "Forward 10s"
|
||||||
|
@ -427,7 +429,23 @@ ApplicationWindow {
|
||||||
player.command(["seek", "10"])
|
player.command(["seek", "10"])
|
||||||
updateControls()
|
updateControls()
|
||||||
}
|
}
|
||||||
shortcut: keybinds.Forward10
|
shortcut: keybinds.forward10
|
||||||
|
}
|
||||||
|
Action {
|
||||||
|
text: "Forward Frame"
|
||||||
|
onTriggered: {
|
||||||
|
player.command(["frame-step"])
|
||||||
|
updateControls()
|
||||||
|
}
|
||||||
|
shortcut: keybinds.forwardFrame
|
||||||
|
}
|
||||||
|
Action {
|
||||||
|
text: "Back Frame"
|
||||||
|
onTriggered: {
|
||||||
|
player.command(["frame-back-step"])
|
||||||
|
updateControls()
|
||||||
|
}
|
||||||
|
shortcut: keybinds.backwardFrame
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +468,7 @@ ApplicationWindow {
|
||||||
subtitlesMenu.visible = !subtitlesMenu.visible
|
subtitlesMenu.visible = !subtitlesMenu.visible
|
||||||
subtitlesMenuBackground.visible = !subtitlesMenuBackground.visible
|
subtitlesMenuBackground.visible = !subtitlesMenuBackground.visible
|
||||||
}
|
}
|
||||||
shortcut: keybinds.Tracks
|
shortcut: keybinds.tracks
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
|
@ -458,7 +476,7 @@ ApplicationWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
toggleFullscreen()
|
toggleFullscreen()
|
||||||
}
|
}
|
||||||
shortcut: keybinds.Fullscreen
|
shortcut: keybinds.fullscreen
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
|
@ -466,7 +484,7 @@ ApplicationWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
player.command(["script-binding", "stats/display-stats-toggle"])
|
player.command(["script-binding", "stats/display-stats-toggle"])
|
||||||
}
|
}
|
||||||
shortcut: keybinds.StatsForNerds
|
shortcut: keybinds.statsForNerds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue