mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
Fix force focus
This commit is contained in:
@@ -54,6 +54,9 @@ DankModal {
|
|||||||
height: 700
|
height: 700
|
||||||
visible: false
|
visible: false
|
||||||
onBackgroundClicked: hide()
|
onBackgroundClicked: hide()
|
||||||
|
onOpened: () => {
|
||||||
|
Qt.callLater(() => modalFocusScope.forceActiveFocus());
|
||||||
|
}
|
||||||
onShouldBeVisibleChanged: (shouldBeVisible) => {
|
onShouldBeVisibleChanged: (shouldBeVisible) => {
|
||||||
if (!shouldBeVisible) {
|
if (!shouldBeVisible) {
|
||||||
notificationModalOpen = false
|
notificationModalOpen = false
|
||||||
|
|||||||
Reference in New Issue
Block a user