Skip to content
Snippets Groups Projects
Commit a24348b5 authored by Thomas Karpiniec's avatar Thomas Karpiniec
Browse files

Allow opening a completer starting with selected text

parent 47ad58ef
No related branches found
No related tags found
No related merge requests found
......@@ -165,13 +165,13 @@ Rectangle {
} else if (event.modifiers == Qt.ControlModifier && event.key == Qt.Key_N) {
messageInput.text = room.input.nextText();
} else if (event.key == Qt.Key_At) {
messageInput.openCompleter(cursorPosition, "user");
messageInput.openCompleter(selectionStart, "user");
popup.open();
} else if (event.key == Qt.Key_Colon) {
messageInput.openCompleter(cursorPosition, "emoji");
messageInput.openCompleter(selectionStart, "emoji");
popup.open();
} else if (event.key == Qt.Key_NumberSign) {
messageInput.openCompleter(cursorPosition, "roomAliases");
messageInput.openCompleter(selectionStart, "roomAliases");
popup.open();
} else if (event.key == Qt.Key_Escape && popup.opened) {
completerTriggeredAt = -1;
......
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