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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user