Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'll need to track your own selection state and take over actually inserting the characters by calling preventDefault() during beforeinput in Chrome and Safari. Both Chrome and Safari will fight you on this one. To say nothing of Android...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: