What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

In the comment box, you can type new lines, but they are never rendered. This can trick people into thinking that they can separate text into paragraphs, when this is not possible.

I think that when the enter key is pressed, the comment should be submitted.

This would then be consistent with chat and asking a question.

share|improve this question
1  
A prompt before submission would make sense too, as users must be used to the current behavior. –  Reinis I. Sep 3 '10 at 5:36
    
As an aside: Newlines are served to the browser without first converting them to HTML line breaks, but browsers ignore newlines. (See the source of this very comment.) –  Arjan Sep 3 '10 at 9:55
    
17  
I curse you; this feature is very annoying. :P I keep submitting incomplete comments by mistake. (E.g., this happens for me when especially when they're at the most incomplete: when I'm moving phrases around and used to use newlines to keep things uncluttered while I sort things out.) –  ShreevatsaR Sep 9 '10 at 11:27
    
@Shreevatsa, sorry. I'm a big fan of the new feature. I am about to use it right now! Also, you can enter new lines using shift+enter. –  jjnguy Sep 9 '10 at 13:26
12  
@jinguy: This "feature" broke existing behaviour, differs from nearly every textarea on the web, has unexpected consequences, and violates the Principle of Least Astonishment. It makes it hard to do any nontrivial editing in the little box before submitting a comment; penalizing me with having to use Shift+Enter several times to save one Tab,Enter at the very end. See also the comments by Kop, deceze, and Henrik Erlandsson on the other question. –  ShreevatsaR Sep 15 '10 at 6:12
    
@Shreev, I understand your frustration, but I'm not the person you need to appeal to. I didn't realize how many people would hate this new feature. –  jjnguy Sep 15 '10 at 14:24
    
I wasn't appealing to you; just reacting to your defence and admiration of this bug. :-) –  ShreevatsaR Sep 16 '10 at 21:12
    
-1 Confirming context menu entries via Enter when entering comments triggers comment to be posted - edit there, happened again when pasting the link... –  Tobias Kienzler Oct 5 '10 at 7:20
8  
This is a dreadful misfeature. What were you thinking? –  walkytalky Oct 18 '10 at 15:43
    
@walky, I like it...sorry. –  jjnguy Oct 18 '10 at 16:10
    
Ack. Now this lunacy has infected Facebook. I hold you personally responsible for breaking the internet! (Yes, I did see your Oatmeal.) –  walkytalky Mar 17 '11 at 22:27
1  
@walkytalky, sorry. I hope you will forgive me sometime. –  jjnguy Mar 17 '11 at 22:43
    
Very annoying "feature" –  codewaggle Jun 20 '12 at 9:56
    
This works perfctly, the best is on android where you can hit enter without even moving the on-screen keyboard and trying to "touch" that tiny button (also nnote that there is no tab on the android keyboard so if changed back this needs to be addressed) –  oǝʇɐW Apr 4 '13 at 22:10
add comment

2 Answers 2

up vote -5 down vote accepted

Comments can now be submitted by hitting enter while in the comment textarea.

Although newlines are not rendered, you can still insert one into the textarea by hitting shift + enter.

Let us know if you find any issues with this new functionality.

share|improve this answer
    
Testing the new functionality. (Cool!) –  jjnguy Sep 5 '10 at 15:09
26  
IMO this should be reversed, or shift+enter should be accounted for...a multi-line text box says "hey press enter, you're gonna love it"...if it matched other programs (even SO chat) in the shift+enter respect it'd be ok, but now it seems very broken, definitely thrown me off several times today. –  Nick Craver Sep 6 '10 at 23:03
4  
I very much found issues, please see here: meta.stackexchange.com/questions/63644/… –  deceze Sep 13 '10 at 5:06
6  
-1 Confirming context menu entries via Enter when entering comments triggers comment to be posted - edit there, happened again when pasting the link... –  Tobias Kienzler Oct 5 '10 at 7:21
    
Shift+enter has no effect after submitting the comment. How can you write readable code this way? –  stracktracer Apr 25 at 17:07
add comment

They might show in the data dump, right? That might be used for different formatting.

And even when they are never rendered, I still find them useful every now and then, especially when including inline links to other questions that might have dots or question marks in their titles. Enlarging the edit box in my browser, and using new lines, makes things slightly easier to read. Like:

See [How does the comment system and comments work?](How do comments work?) Or [How to use formatting in comments?](How to use formatting in comments?) (But that's just my opinion.)

Versus:

See [How does the comment system and comments work?](How do comments work?)

Or [How to use formatting in comments?](How to use formatting in comments?)

(But that's just my opinion.)

share|improve this answer
2  
suggestion: do not get too attached to this behavior, or learn to press SHIFT+ENTER –  Jeff Atwood Sep 3 '10 at 11:57
    
Aha hint noted, @Jeff, so I guess should quickly downvote this feature request, even though my downvote would only apply to the part "when the enter key is pressed, the comment should be submitted" -- which matches the behaviour for the Search, but is different from the behaviour when answering. But well, even comments have an edit option, so nothing bad can happen, really. ;-) –  Arjan Sep 3 '10 at 12:24
    
@Arjan, when typing up a question, if the tags field (the last field) has focus, and enter is pressed,the questions is submitted. So, there is some precedence for this. –  jjnguy Sep 3 '10 at 12:58
1  
Well, switch to a better browser. :p –  jjnguy Sep 3 '10 at 13:39
9  
@Jeff Atwood: If we're going to use newlines several times while typing/editing a comment, and only going to submit it once, why should the rare and hard-to-reverse action (submitting) take precedence over the more useful one? It's not that much effort to hit Tab and Enter just once, while it's a lot of effort to hit Shift-Enter multiple times. –  ShreevatsaR Sep 16 '10 at 21:15
4  
@jjnguy - That is not precedence. The tags field is a textbox, while the comment field and question field are textareas. They have completely different expected behaviors. When you hit Enter in a textbox, the form should be submitted. When you hit Enter in a textarea, it should break to a new line. This is the expected and understood behavior for these components on the web, and there is no good reason to break them. –  Charles Boyung Mar 29 '11 at 13:06
    
I don't get it. You can enter an "enter" using shift+enter in a comment box, but it won't display (render). There are many reasons to include more than one idea in a comment and it is "normal" in English to make them separate lines or paragraphs. I have no idea what a data dump is in this context or why I should care. –  Joe May 25 '12 at 18:58
    
@Joe, the data dumps make all content available for other usage. So even though these sites don't render them, some other (future) site might. –  Arjan May 25 '12 at 19:18
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .