resolves #241: treat number input fields separately, because Chrome doesn't support selectionStart and selectionEnd for them any longer