fix(gif/emoji popup): pre-focus the search field

Close #6165
This commit is contained in:
Lukáš Tinkl 2022-07-05 09:20:57 +02:00 committed by Lukáš Tinkl
parent f306ecebfe
commit 6d8cee9541
3 changed files with 4 additions and 6 deletions

View File

@ -32,7 +32,6 @@ Popup {
verticalOffset: 3
radius: 8
samples: 15
fast: true
cached: true
color: "#22000000"
}
@ -201,7 +200,7 @@ Popup {
onOpened: {
searchBox.text = ""
searchBox.forceActiveFocus(Qt.MouseFocusReason)
searchBox.input.edit.forceActiveFocus()
Qt.callLater(populateCategories);
}

View File

@ -14,7 +14,7 @@ Column {
id: root
spacing: 8
property alias gifList: repeater
property var gifWidth: 0
property int gifWidth: 0
property var store
property var gifSelected: function () {}
property var toggleFavorite: function () {}

View File

@ -52,11 +52,10 @@ Popup {
color: Style.current.background
border.color: Style.current.border
layer.enabled: true
layer.effect: DropShadow{
layer.effect: DropShadow {
verticalOffset: 3
radius: 8
samples: 15
fast: true
cached: true
color: "#22000000"
}
@ -64,7 +63,7 @@ Popup {
onOpened: {
searchBox.text = ""
searchBox.forceActiveFocus(Qt.MouseFocusReason)
searchBox.input.edit.forceActiveFocus()
if (RootStore.isTenorWarningAccepted) {
RootStore.getTrendingsGifs()
} else {