diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-11-13 09:03:02 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-11-13 09:03:02 -0600 |
| commit | 8bd820b9099679f91fb0c542eb9edfd71a720332 (patch) | |
| tree | 9a0faed7cc20e81dc197bba305327dc90dd5e90e /components/InputMulti.qml | |
| parent | f948d0e21443e0ffc913b7c2b65a87400c4d8fe3 (diff) | |
| parent | 74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844 (diff) | |
| download | monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.tar.gz monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.tar.xz monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.zip | |
Merge pull request #2429
74e12ce ContextMenu: implement 'paste' context menu for all text fields (xiphon)
Diffstat (limited to 'components/InputMulti.qml')
| -rw-r--r-- | components/InputMulti.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/InputMulti.qml b/components/InputMulti.qml index 891bdc4f..8fccb6a6 100644 --- a/components/InputMulti.qml +++ b/components/InputMulti.qml @@ -57,6 +57,10 @@ TextArea { onTextChanged: { if(addressValidation){ // js replacement for `RegExpValidator { regExp: /[0-9A-Fa-f]{95}/g }` + if (textArea.text.startsWith("monero:")) { + error = false; + return; + } textArea.text = textArea.text.replace(/[^a-z0-9.@\-]/gi,''); var address_ok = TxUtils.checkAddress(textArea.text, appWindow.persistentSettings.nettype) || TxUtils.isValidOpenAliasAddress(textArea.text); if(!address_ok) error = true; @@ -64,4 +68,11 @@ TextArea { TextArea.cursorPosition = textArea.text.length; } } + + MoneroComponents.ContextMenu { + onPaste: { + textArea.clear(); + textArea.paste(); + } + } } |
