From 7e9f2063480a1e6319678d06152a8b3b3ba46e7c Mon Sep 17 00:00:00 2001 From: James Graham Date: Mon, 1 Jan 2024 16:15:29 +0000 Subject: [PATCH] Clear the emoji picker search when the dialog is closed Clear the emoji picker search when the dialog is closed BUG: 472873 --- src/qml/EmojiDialog.qml | 1 + src/qml/EmojiPicker.qml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/qml/EmojiDialog.qml b/src/qml/EmojiDialog.qml index 72821b374..c85fad4d3 100644 --- a/src/qml/EmojiDialog.qml +++ b/src/qml/EmojiDialog.qml @@ -31,6 +31,7 @@ QQC2.Popup { onVisibleChanged: { if (!visible) { + emojiPicker.clearSearchField() return } emojiPicker.forceActiveFocus() diff --git a/src/qml/EmojiPicker.qml b/src/qml/EmojiPicker.qml index 86676975e..ac6c18e89 100644 --- a/src/qml/EmojiPicker.qml +++ b/src/qml/EmojiPicker.qml @@ -206,4 +206,8 @@ ColumnLayout { onClicked: stickerModel.packIndex = model.index } } + + function clearSearchField() { + searchField.text = "" + } }