Fix paste not overwriting selections
This commit is contained in:
parent
84b2cf08a1
commit
3022178334
@ -274,6 +274,7 @@ Rectangle {
|
|||||||
Connections {
|
Connections {
|
||||||
ignoreUnknownSignals: true
|
ignoreUnknownSignals: true
|
||||||
onInsertText: {
|
onInsertText: {
|
||||||
|
messageInput.remove(messageInput.selectionStart, messageInput.selectionEnd);
|
||||||
messageInput.insert(messageInput.cursorPosition, text);
|
messageInput.insert(messageInput.cursorPosition, text);
|
||||||
}
|
}
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
|
Loading…
Reference in New Issue
Block a user