Fix emoji picker not connected to input

This commit is contained in:
Nicolas Werner 2021-07-22 15:31:07 +02:00
parent 0ac550ecbb
commit 50cc0fca3b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -355,7 +355,7 @@ Rectangle {
image: ":/icons/icons/ui/smile.png"
ToolTip.visible: hovered
ToolTip.text: qsTr("Emoji")
onClicked: emojiPopup.visible ? emojiPopup.close() : emojiPopup.show(function(emoji) {
onClicked: emojiPopup.visible ? emojiPopup.close() : emojiPopup.show(emojiButton, function(emoji) {
messageInput.insert(messageInput.cursorPosition, emoji);
TimelineManager.focusMessageInput();
})