fix: Chat Input isn't focused after editing a message

Fixes #8966
This commit is contained in:
Lukáš Tinkl 2023-01-05 04:14:12 +01:00 committed by Lukáš Tinkl
parent 01f2e645bc
commit b086d432d1
2 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,7 @@ ColumnLayout {
onOpenStickerPackPopup: {
root.openStickerPackPopup(stickerPackId);
}
onEditModeChanged: if (!editModeOn) chatInput.forceInputActiveFocus()
}
Item {

View File

@ -44,6 +44,7 @@ Item {
signal openStickerPackPopup(string stickerPackId)
signal showReplyArea(string messageId, string author)
signal editModeChanged(bool editModeOn)
QtObject {
id: d
@ -272,6 +273,7 @@ Item {
sticker: model.sticker
stickerPack: model.stickerPack
editModeOn: model.editMode
onEditModeOnChanged: root.editModeChanged(editModeOn)
isEdited: model.isEdited
linkUrls: model.links
messageAttachments: model.messageAttachments