Fix paste not overwriting selections

This commit is contained in:
Nicolas Werner 2021-04-15 01:45:18 +02:00
parent 84b2cf08a1
commit 3022178334
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ Rectangle {
Connections {
ignoreUnknownSignals: true
onInsertText: {
messageInput.remove(messageInput.selectionStart, messageInput.selectionEnd);
messageInput.insert(messageInput.cursorPosition, text);
}
onTextChanged: {