Consolidate input logic into BrowserView
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user