> So you are typing "Don't" and the ResetCursorPosition() function gets called and you look at the textbox and now it says "on'tD" I had this bug trying to implement a text editor using Draft.js but not sure it was for the same reason. I guess tumblr devs tried to implement a text editor and at the same time have some vim like shortcuts(jkl). This makes you appreciate how less can be more.
Javascript editors trying to reinvent desktop paradigms but without the 40-odd years of practice and having all the events arrive whenever they feel like is one of the most frequent irritations of web-based platforms for me, because you use a text editor so frequently and therefore encounter its problems similarly often. For example, earlier today I was editing a small internal app in Retool. I typed something, insti…
If I accidentally fat-fingered e.g. the \ key at the end of a message ("Got it!\"), I want to
1. press the up key
2. press backspace
3. press enter
to delete the last character in the last sent message.
But unless you actually wait at least a second after step 1, the UI is so sluggish in starting the edit of your last message that you instead get "please type a message to continue" because you pressed enter while the New Message text box still had focus.
Things are much worse if you want to do anything more complex. Say, capitalize the first letter of the last sent message (up, home, delete, type capital letter, enter). Usually results in complete gibberish, like appending the capital letter to the message, or sending it in a new message (depending on how fast you are).