Selectmenu: Preserve text selection and button focus on click

Fixes #10639
Closes gh-1358