ContextMenu: implement 'paste' context menu for all text fields

This commit is contained in:
xiphon
2019-11-08 00:56:10 +00:00
parent 7f7a39292c
commit 74e12ce71d
12 changed files with 78 additions and 19 deletions

View File

@@ -325,8 +325,8 @@ Rectangle {
wrapMode: Text.WrapAnywhere
addressValidation: true
pasteButton: true
onPaste: function(clipboardText) {
const parsed = walletManager.parse_uri_to_object(clipboardText);
onTextChanged: {
const parsed = walletManager.parse_uri_to_object(addressLine.text);
if (!parsed.error) {
addressLine.text = parsed.address;
descriptionLine.text = parsed.tx_description;