0

Don't post comment when pressing enter?

When someone enters a comment, if you press the enter key, the comment is posted.
Users unfamiliar with comments tend to try to use enter to break the line up, and this causes an incomplete comment to be posted.

Is there a way to change this to <enter> doesn't post the comment?
Should this be a configurable option? Some site might prefer this post on <enter> behavior.

Evgeny's avatar
13.2k
Evgeny
updated 2011-02-03 00:50:24 -0500
Benoit's avatar
875
Benoit
asked 2011-02-02 09:43:28 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Will add an option, I think it's better to have a choice than force one way or another. I like being able to save comment on enter, especially because all comments are single paragraph (which may ask for another option).
Evgeny's avatar Evgeny (2011-02-02 23:47:34 -0500) edit
I agree that an option is the way to go.
Benoit's avatar Benoit (2011-02-03 10:20:23 -0500) edit
The default setting is "True" - because the comments are single paragraph and the linebreak is not needed. Also comment editor listens to <Esc> key - to exit.
Evgeny's avatar Evgeny (2011-02-03 16:54:05 -0500) edit

Me also click "ever" enter to go on other line so i'd need to change this parameter :)

I Like AskBot's avatar I Like AskBot (2012-08-24 12:28:10 -0500) edit
add a comment see more comments

1 Answer

1

This can be removed, it was actually a feature added on purpose. Apparently not everyone likes it.

The thing is that right now comments only accept one paragraph but I'll remove "Enter" handler.

Evgeny's avatar
13.2k
Evgeny
updated 2011-02-02 14:09:41 -0500, answered 2011-02-02 14:08:30 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments