plasmoid: auto-focus prompt input when expanded
This commit is contained in:
parent
03321cf8a6
commit
e53ed3b918
|
|
@ -79,6 +79,12 @@ PlasmoidItem {
|
|||
Layout.preferredHeight: 520
|
||||
spacing: 0
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && promptInput.enabled) {
|
||||
promptInput.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
// --- Header ---
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
|
|
|||
Reference in New Issue