4 ms·
This is due to a bug/weirdness with how Safari deals with using the ESC key for a hotkey with javascript. Safari actually fires key events for the escape key h
by splatcollision 14y ago
This is due to a bug/weirdness with how Safari deals with using the ESC key for a hotkey with javascript.
Safari actually fires key events for the escape key hundreds of times per second.
This can cause some unexpected behavior if you don't do some clever javascript to handle this bug.
I came here to comment on the same issue - hitting escape to edit will work for the first toggle, but afterwards to say 'i'm done editing' the key handler gets called too many times and the markdown flickers on and off like crazy.
Also: escape is not really a normal key for 'edit this text'. It would be better to put an explicit 'edit' link, it's more understandable for your users.
Overall though I like how simple it is, and love the use of Markdown.
- webjprgm 14y agoESC is used to exit a mode in VI. So it could be good for "I'm doing editing this text" in that sense.