summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-03-20 21:57:16 +0100
committerMalte E <malte.e@mailbox.org>2022-03-20 21:57:16 +0100
commitd58a4836427207716498069b5a158f26bb9c8249 (patch)
treebe87dd61f90306fcb35e91cbf54858b4ce36a8db /resources/qml
parentremove completer trigger characters (diff)
downloadnheko-d58a4836427207716498069b5a158f26bb9c8249.tar.xz
add preedit text to search
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/MessageInput.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml
index 67ca7f3c..d8a271fe 100644
--- a/resources/qml/MessageInput.qml
+++ b/resources/qml/MessageInput.qml
@@ -175,9 +175,13 @@ Rectangle {
                         popup.close();
 
                     if (popup.opened)
-                        completer.completer.setSearchString(messageInput.getText(completerTriggeredAt, cursorPosition));
+                        completer.completer.setSearchString(messageInput.getText(completerTriggeredAt, cursorPosition)+messageInput.preeditText);
 
                 }
+                onPreeditTextChanged: {
+                    if (popup.opened)
+                        completer.completer.setSearchString(messageInput.getText(completerTriggeredAt, cursorPosition)+messageInput.preeditText);
+                }
                 onSelectionStartChanged: room.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
                 onSelectionEndChanged: room.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
                 // Ensure that we get escape key press events first.