summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-09-22 21:24:41 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-09-22 21:24:41 +0200
commited15d73d36bf1d8fa1bbddf26b2393d6ef622b0d (patch)
tree4064a5eec447bd272228ad1042d99fc7be337c40 /resources/qml
parentUpgrade build images (diff)
downloadnheko-ed15d73d36bf1d8fa1bbddf26b2393d6ef622b0d.tar.xz
Allow adding non-existing userids to power levels
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/dialogs/PowerLevelEditor.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/qml/dialogs/PowerLevelEditor.qml b/resources/qml/dialogs/PowerLevelEditor.qml

index d757f0af..bfb337ff 100644 --- a/resources/qml/dialogs/PowerLevelEditor.qml +++ b/resources/qml/dialogs/PowerLevelEditor.qml
@@ -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 {