1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

fix clipboard auto-focus on open

This commit is contained in:
bbedward
2025-08-13 10:40:16 -04:00
parent 4363776545
commit a1bd7aaa3f

View File

@@ -388,12 +388,12 @@ DankModal {
} }
Connections { Connections {
function onOpened() { function onVisibleChanged() {
if (clipboardHistoryModal.visible) {
Qt.callLater(function () {
searchField.forceActiveFocus() searchField.forceActiveFocus()
})
} }
function onDialogClosed() {
searchField.clearFocus()
} }
target: clipboardHistoryModal target: clipboardHistoryModal