1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

feat: Keybaord Nav to Category Settings

- fix: Escape key to exit settings
This commit is contained in:
purian23
2025-10-18 20:45:01 -04:00
parent 8719dcf98f
commit bcb22ec265
2 changed files with 70 additions and 3 deletions

View File

@@ -112,9 +112,15 @@ DankModal {
settingsContent: Component {
FocusScope {
id: rootScope
anchors.fill: parent
focus: true
Keys.onEscapePressed: event => {
settingsModal.hide()
event.accepted = true
}
Column {
anchors.fill: parent
anchors.leftMargin: Theme.spacingL
@@ -172,6 +178,7 @@ DankModal {
id: sidebar
parentModal: settingsModal
focus: true
onCurrentIndexChanged: content.currentIndex = currentIndex
}