diff options
Diffstat (limited to 'components/Input.qml')
| -rw-r--r-- | components/Input.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/Input.qml b/components/Input.qml index 33601d88..b33a821e 100644 --- a/components/Input.qml +++ b/components/Input.qml @@ -48,9 +48,16 @@ TextField { MoneroComponents.ContextMenu { cursorShape: Qt.IBeamCursor + onCut: textField.cut(); + onCopy: textField.copy(); onPaste: { - textField.clear(); + var previoustextFieldLength = textField.length + var previousCursorPosition = textField.cursorPosition; textField.paste(); + textField.forceActiveFocus() + textField.cursorPosition = previousCursorPosition + (textField.length - previoustextFieldLength); } + onRemove: textField.remove(selectionStart, selectionEnd); + onSelectAll: textField.selectAll(); } } |
