mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
remove completer trigger characters
This commit is contained in:
parent
548063d303
commit
0cb729cfc2
1 changed files with 4 additions and 4 deletions
|
@ -157,13 +157,13 @@ Rectangle {
|
||||||
else
|
else
|
||||||
lastChar = ''
|
lastChar = ''
|
||||||
if (lastChar == '@') {
|
if (lastChar == '@') {
|
||||||
messageInput.openCompleter(selectionStart, "user");
|
messageInput.openCompleter(selectionStart-1, "user");
|
||||||
} else if (lastChar == ':') {
|
} else if (lastChar == ':') {
|
||||||
messageInput.openCompleter(selectionStart, "emoji");
|
messageInput.openCompleter(selectionStart-1, "emoji");
|
||||||
} else if (lastChar == '#') {
|
} else if (lastChar == '#') {
|
||||||
messageInput.openCompleter(selectionStart, "roomAliases");
|
messageInput.openCompleter(selectionStart-1, "roomAliases");
|
||||||
} else if (lastChar == "~") {
|
} else if (lastChar == "~") {
|
||||||
messageInput.openCompleter(selectionStart, "customEmoji");
|
messageInput.openCompleter(selectionStart-1, "customEmoji");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onCursorPositionChanged: {
|
onCursorPositionChanged: {
|
||||||
|
|
Loading…
Reference in a new issue