Allow adding non-existing userids to power levels

This commit is contained in:
Nicolas Werner 2022-09-22 21:24:41 +02:00
parent 33d45d5765
commit ed15d73d36
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -272,7 +272,11 @@ ApplicationWindow {
else else
userCompleter.down(); userCompleter.down();
} else if (event.matches(StandardKey.InsertParagraphSeparator)) { } 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; 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 {