Skip to content
Snippets Groups Projects
Verified Commit ed15d73d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Allow adding non-existing userids to power levels

parent 33d45d57
No related branches found
No related tags found
No related merge requests found
Pipeline #3670 failed
......@@ -272,7 +272,11 @@ ApplicationWindow {
else
userCompleter.down();
} else if (event.matches(StandardKey.InsertParagraphSeparator)) {
userCompleter.finishCompletion();
if (userCompleter.currentCompletion()) {
userCompleter.finishCompletion();
} else if (userEntry.text.startsWith("@") && userEntry.text.includes(":")) {
userCompletionConnections.onCompletionSelected(userEntry.text);
}
event.accepted = true;
} else if (event.matches(StandardKey.Cancel)) {
typeEntry.visible = false;
......@@ -315,6 +319,7 @@ ApplicationWindow {
}
target: userCompleter
id: userCompletionConnections
}
delegate: RowLayout {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment