parent
6c370b1f0e
commit
73244afdb8
@ -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 New Issue
Block a user