Improve selection and focus handling in IE.