mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
parent
6c370b1f0e
commit
73244afdb8
1 changed files with 4 additions and 1 deletions
|
@ -206,9 +206,12 @@ Rectangle {
|
|||
while (pos > -1) {
|
||||
var t = messageInput.getText(pos, pos + 1);
|
||||
console.log('"' + t + '"');
|
||||
if (t == '@' || t == ' ' || t == '\t') {
|
||||
if (t == '@') {
|
||||
messageInput.openCompleter(pos, "user");
|
||||
return ;
|
||||
} else if (t == ' ' || t == '\t') {
|
||||
messageInput.openCompleter(pos + 1, "user");
|
||||
return ;
|
||||
} else if (t == ':') {
|
||||
messageInput.openCompleter(pos, "emoji");
|
||||
return ;
|
||||
|
|
Loading…
Reference in a new issue