Fix pasting with the middle button in TextInput and TextEdit.