AppLauncher focus fix

This commit is contained in:
quadbyte 2025-08-20 12:05:53 -04:00
parent fe3818d531
commit fc9a53fb0d

View file

@ -238,14 +238,15 @@ NPanel {
bottomPadding: 0 bottomPadding: 0
font.bold: true font.bold: true
Component.onCompleted: { Component.onCompleted: {
contentItem.cursorColor = Color.mOnSurface
contentItem.verticalAlignment = TextInput.AlignVCenter // contentItem.cursorColor = Color.mOnSurface
// contentItem.verticalAlignment = TextInput.AlignVCenter
// Focus the search bar by default // Focus the search bar by default
Qt.callLater(() => { Qt.callLater(() => {
searchInput.forceActiveFocus() searchInput.forceActiveFocus()
}) })
} }
onActiveFocusChanged: contentItem.cursorColor = Color.mOnSurface //onActiveFocusChanged: contentItem.cursorColor = Color.mOnSurface
Keys.onDownPressed: selectNext() Keys.onDownPressed: selectNext()
Keys.onUpPressed: selectPrev() Keys.onUpPressed: selectPrev()