aboutsummaryrefslogtreecommitdiff
path: root/components/InputMulti.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/InputMulti.qml')
-rw-r--r--components/InputMulti.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/InputMulti.qml b/components/InputMulti.qml
index ddbd5552..5d530b1d 100644
--- a/components/InputMulti.qml
+++ b/components/InputMulti.qml
@@ -71,9 +71,16 @@ TextArea {
MoneroComponents.ContextMenu {
cursorShape: Qt.IBeamCursor
+ onCut: textArea.cut();
+ onCopy: textArea.copy();
onPaste: {
- textArea.clear();
+ var previoustextFieldLength = textArea.length
+ var previousCursorPosition = textArea.cursorPosition;
textArea.paste();
+ textArea.forceActiveFocus()
+ textArea.cursorPosition = previousCursorPosition + (textArea.length - previoustextFieldLength);
}
+ onRemove: textArea.remove(selectionStart, selectionEnd);
+ onSelectAll: textArea.selectAll();
}
}