mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
add preedit text to search
This commit is contained in:
parent
0cb729cfc2
commit
d58a483642
1 changed files with 5 additions and 1 deletions
|
@ -175,9 +175,13 @@ Rectangle {
|
||||||
popup.close();
|
popup.close();
|
||||||
|
|
||||||
if (popup.opened)
|
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)
|
onSelectionStartChanged: room.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
||||||
onSelectionEndChanged: room.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
onSelectionEndChanged: room.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
||||||
// Ensure that we get escape key press events first.
|
// Ensure that we get escape key press events first.
|
||||||
|
|
Loading…
Reference in a new issue