diff options
author | Malte E <malte.e@mailbox.org> | 2022-03-20 21:34:41 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-03-20 21:34:41 +0100 |
commit | 0cb729cfc2447f34f95d5608921914e85d9ee8b6 (patch) | |
tree | e6a6336c8bc3d089490960cc4acb792f0888deef /resources | |
parent | attempt to include preeditText in search string (diff) | |
download | nheko-0cb729cfc2447f34f95d5608921914e85d9ee8b6.tar.xz |
remove completer trigger characters
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/MessageInput.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml index b95d4769..67ca7f3c 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml @@ -157,13 +157,13 @@ Rectangle { else lastChar = '' if (lastChar == '@') { - messageInput.openCompleter(selectionStart, "user"); + messageInput.openCompleter(selectionStart-1, "user"); } else if (lastChar == ':') { - messageInput.openCompleter(selectionStart, "emoji"); + messageInput.openCompleter(selectionStart-1, "emoji"); } else if (lastChar == '#') { - messageInput.openCompleter(selectionStart, "roomAliases"); + messageInput.openCompleter(selectionStart-1, "roomAliases"); } else if (lastChar == "~") { - messageInput.openCompleter(selectionStart, "customEmoji"); + messageInput.openCompleter(selectionStart-1, "customEmoji"); } } onCursorPositionChanged: { |