Fix paste-from-clipboard behavior with selected text in the input field
Correctly replace selected text and deselect after