Consolidate input logic into BrowserView

This commit is contained in:
2022-09-03 03:24:02 -04:00
parent 628f02831e
commit 912ebc57ce
4 changed files with 85 additions and 101 deletions
+7 -1
View File
@@ -24,10 +24,16 @@ ApplicationWindow {
BrowserView {
id: browserView
focus: true
db: database
}
PlayerView {
id: playerView
anchors.fill: parent
}
Keys.onPressed: (event)=> {
if (event.key == Qt.Key_Return) {
currentIndex = 1
playerView.children[0].play("./test1.mkv")
}
}
}
}