mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Allow adding non-existing userids to power levels
This commit is contained in:
parent
33d45d5765
commit
ed15d73d36
1 changed files with 6 additions and 1 deletions
|
@ -272,7 +272,11 @@ ApplicationWindow {
|
||||||
else
|
else
|
||||||
userCompleter.down();
|
userCompleter.down();
|
||||||
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
|
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
|
||||||
|
if (userCompleter.currentCompletion()) {
|
||||||
userCompleter.finishCompletion();
|
userCompleter.finishCompletion();
|
||||||
|
} else if (userEntry.text.startsWith("@") && userEntry.text.includes(":")) {
|
||||||
|
userCompletionConnections.onCompletionSelected(userEntry.text);
|
||||||
|
}
|
||||||
event.accepted = true;
|
event.accepted = true;
|
||||||
} else if (event.matches(StandardKey.Cancel)) {
|
} else if (event.matches(StandardKey.Cancel)) {
|
||||||
typeEntry.visible = false;
|
typeEntry.visible = false;
|
||||||
|
@ -315,6 +319,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
target: userCompleter
|
target: userCompleter
|
||||||
|
id: userCompletionConnections
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
|
|
Loading…
Reference in a new issue