mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
fix clipboard auto-focus on open
This commit is contained in:
@@ -388,12 +388,12 @@ DankModal {
|
||||
}
|
||||
|
||||
Connections {
|
||||
function onOpened() {
|
||||
searchField.forceActiveFocus()
|
||||
}
|
||||
|
||||
function onDialogClosed() {
|
||||
searchField.clearFocus()
|
||||
function onVisibleChanged() {
|
||||
if (clipboardHistoryModal.visible) {
|
||||
Qt.callLater(function () {
|
||||
searchField.forceActiveFocus()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
target: clipboardHistoryModal
|
||||
|
||||
Reference in New Issue
Block a user