Added ability to disable pasting to textfield