We should add a property to prevent the end-user from copying text from a Ti.Ui.TextField and Ti.UI.TextArea. The intention is to improve security and block accidental copying of personal information to the clipboard which can be accessed by external apps.
Add boolean property "enableCopy", which will default to true.
The following must happen when setting this to false...
- Context menu will not show: copy, cut, share
- Command+C and Command+X shortcuts will be ignored.
On Android, we can't remove the "copy" and "cut" options from:
- Virtual keyboard's "Text Editing" section.
- Landscape fullscreen edit mode's context menu.
That said, we can make the "copy" and "cut" options no-op in the above cases and block the copy.