Improve the code for completions

This commit is contained in:
James Graham
2026-02-03 18:03:43 +00:00
parent 234d823366
commit 80047acf87
5 changed files with 39 additions and 45 deletions

View File

@@ -61,9 +61,9 @@ Item {
target: root.currentRoom.mainCache
function onMentionAdded(text: string, hRef: string): void {
completionMenu.complete(text, hRef);
core.completionModel.insertCompletion(text, hRef);
// move the focus back to the chat bar
contentModel.refocusCurrentComponent();
core.model.refocusCurrentComponent();
}
}