Ask Your Question

Don't post comment when pressing enter?

asked 2011-02-02 09:43:28 -0500

Benoit's avatar

updated 2011-02-03 00:50:24 -0500

Evgeny's avatar

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.

edit retag flag offensive close merge delete


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

1 Answer

Sort by ยป oldest newest most voted

answered 2011-02-02 14:08:30 -0500

Evgeny's avatar

updated 2011-02-02 14:09:41 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-02-02 09:43:28 -0500

Seen: 446 times

Last updated: Feb 02 '11