AppLauncher focus fix
This commit is contained in:
parent
fe3818d531
commit
fc9a53fb0d
1 changed files with 4 additions and 3 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue