Common paste action for text input widgets