input: remove `getSelectionEnd()`