summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-03-20 21:34:41 +0100
committerMalte E <malte.e@mailbox.org>2022-03-20 21:34:41 +0100
commit0cb729cfc2447f34f95d5608921914e85d9ee8b6 (patch)
treee6a6336c8bc3d089490960cc4acb792f0888deef /resources
parentattempt to include preeditText in search string (diff)
downloadnheko-0cb729cfc2447f34f95d5608921914e85d9ee8b6.tar.xz
remove completer trigger characters
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/MessageInput.qml8
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: {