allow audio engine to react to keyboard inputs

This commit is contained in:
2026-06-10 20:44:04 -05:00
parent 7231d948bc
commit 8eb5a619ad
8 changed files with 67 additions and 29 deletions

View File

@@ -30,4 +30,23 @@ ApplicationWindow {
}
}
Item {
anchors.fill: parent
focus: true
Keys.onPressed: (event) => {
if(!event.isAutoRepeat) {
keyboardController.keyDownEvent(event.key, event.modifiers, event.text)
event.accepted = true
}
}
Keys.onReleased: (event) => {
if(!event.isAutoRepeat) {
keyboardController.keyUpEvent(event.key, event.modifiers, event.text)
event.accepted = true
}
}
}
}