1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

auto-focus first notification on modal when opened

This commit is contained in:
bbedward
2025-09-21 21:01:35 -04:00
parent c464bb3e47
commit 8fb17f7fd5

View File

@@ -27,6 +27,7 @@ DankModal {
modalKeyboardController.updateSelectedIdFromIndex() modalKeyboardController.updateSelectedIdFromIndex()
if (notificationListRef) { if (notificationListRef) {
notificationListRef.keyboardActive = true notificationListRef.keyboardActive = true
notificationListRef.currentIndex = 0
} }
modalKeyboardController.selectionVersion++ modalKeyboardController.selectionVersion++
modalKeyboardController.ensureVisible() modalKeyboardController.ensureVisible()