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

Please make the enter key send messages in mobile chat. It's how desktop chat works on SE and perhaps more importantly it's how mobile chat systems almost always work on iOS and Android.

Requiring people to tap Send instead is disorienting and annoying.

share|improve this question
3  
This worked way in the beginning; we disabled it because on small devices it's very easy to accidentally hit enter. –  balpha Apr 7 '12 at 19:36
add comment

1 Answer

If you can run JS (bookmarklet?), then you can add the enter event handler yourself:

$("#input").keydown(function(e) {
    if (e.keyCode == 13 && !e.shiftKey) {
        $("#sayit-button").click();
        e.preventDefault();
    }
});

Unfortunately, I can't think of a way (that isn't XSS, which gets blocked by most browsers) to do this so it works without manually executing JS.

share|improve this answer
    
Perhaps proxy chat pages, which would allow JS injection on the proxy server side... –  Bob Feb 19 '13 at 1:23
    
Uhm. Ok. I honestly don't see a reason for the downvote. If the script doesn't work, please tell me so I can fix it! –  Bob May 22 '13 at 10:12
add comment

You must log in to answer this question.

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