diff options
author | Malte E <malte.e@mailbox.org> | 2022-03-20 21:57:16 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-03-20 21:57:16 +0100 |
commit | d58a4836427207716498069b5a158f26bb9c8249 (patch) | |
tree | be87dd61f90306fcb35e91cbf54858b4ce36a8db /resources/qml | |
parent | remove completer trigger characters (diff) | |
download | nheko-d58a4836427207716498069b5a158f26bb9c8249.tar.xz |
add preedit text to search
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/MessageInput.qml | 6 |
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. |