Re:Show HN: Etherpad meets Markdown for a minimal company wiki
by splatcollision on Monday December 17, 2012 @01:37PM
(#4933584)
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.
Re:Show HN: Etherpad meets Markdown for a minimal company wiki
by webjprgm on Monday December 17, 2012 @02:21PM
(#4933838)
ESC is used to exit a mode in VI. So it could be good for "I'm doing editing this text" in that sense.
Re:Show HN: Etherpad meets Markdown for a minimal company wiki
by akrymski on Monday December 17, 2012 @01:34PM
(#4933574)
sorry, fixed
I am using Safari 5.1.7 ... hitting esc always toggles it from normal to markdown mode, but toggling back to normal is difficult ... I have to click around in the different panes a few times and keep hitting escape, and eventually one of them will work.
Is it indeed supposed to toggle back and forth with escape, pressed once, regardless of which pane your mouse is in ?