Wednesday, August 1, 2018

Enter to submit comments on Facebook and StackExchange


Facebook and StackExchange have both recently changed how comments are handled.


Users enter text in what appears to be a textarea. When they press enter the comment is now submitted. Using shift-enter will insert a carriage return.


Previously enter inserted a carriage return and a separate button is used to submit the comment.


I'm interested in expert views on whether this is good or bad for usability - should other sites be adopting this approach or alternately explicitly rejecting it?


Details of the background to the StackExchange change: https://meta.stackexchange.com/questions/63303/why-can-you-type-new-lines-in-comments-if-they-are-never-rendered


I can't find similar discussion from Facebook about their change.


EDIT - some additional thoughts. People have mentioned not noticing the change in SE - I wonder if this is because the submit button has also been retained. In contrast Facebook have removed the Add comment button, so it is more jarring to users as you stop writing and then think 'how can I submit this?'


It was also pointed out to me that Facebook does explain about using shift-enter for carriage return, but only after the user has already pressed return in a comment and then subsequently deleted the comment.



Answer




Having a textarea submit on enter breaks with the default behavior. In theory, if you want users to be able to submit a comment by pressing Enter, you should change the textarea to a single line text field. The use of a textarea implies that one should be able to put line breaks in the input.


However, I have to admit I haven't noticed the change. That might be because I've been using the mouse to click the comment button. (Tab + Enter doesn't work on Mac OSX by default -- Tab doesn't focus buttons.) It might be that I habitually press Enter at the end of a paragraph, and a comment is rarely more than a paragraph, so by submitting the form the UI is anticipating what I was going to do next.


It might be the fact that when I do submit a comment prematurely, it's easy to edit or delete. Unlike Twitter, there's no reason to be concerned that a lot of people would have seen the half-baked version or will still have a copy of it after the edit.


Is it good UX or bad? Should others use it on their sites? I don't know. But here's three things I would take away from this interface:



  1. Be consistent.

  2. Test your assumptions, even if the usability tests lead you away from consistency.

  3. Always provide an easy way to undo.


Edit: I'm now convinced the SE change was a bad idea. There was nothing wrong with requiring a user to press the button to submit a comment. For no good reason, SE has created a different kind of textarea with no visual affordances to distinguish it from regular textareas. It forces users to learn two different rules for textareas and remember or guess which rule applies where. Don't make me think. :-)



No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...