Chat4all IRC forum

Shoutbox service => iShoutbox + Chat4all Shout support and bugs => Topic started by: Chatter on May 21, 2018, 01:47:15 AM

Title: Use return key to post
Post by: Chatter on May 21, 2018, 01:47:15 AM
Hi,
When trying the demo, I noticed that the Return key doesn't send a post, but makes a new line, unlike other sites where Shift-return or option-return does that.
Is it possible to configure ishoutbox so that the Return key sends the post?
Title: Re: Use return key to post
Post by: Adonix on May 21, 2018, 12:26:27 PM
Indeed, return does create a new line. I could add removing the shout button and add posting by enter on my todo list, but i'm not sure what the demand is for something like that. Posting with return is (in my experience) highly annoying and frustrating, as it tends to post messages while you havent finished writing yet (Return is commonly associated with newline).

I did add posting with CTRL-RETURN a few years ago though.
Title: Re: Use return key to post
Post by: Chatter on May 24, 2018, 01:34:08 AM
I hear that you find it annoying, and what you described can still happen to me if I'm not careful.  But I just copy the shout, delete it, paste it into a new shout, add new lines/paragraphs to it it, and re-post it.
Most of the time I get frustrated when the return key doesn't send, since this is the way a lot of other chats, shouts, Skype, etc, all use the return key as an enter key in this situation, and a modifier key (option for some, shift for Skype and most others so probably shift-return would be preferable to make newlines).  Perhaps it could be admin-configurable "Use return key to: (a ) Send, or (b ) Add a new line.
Title: Re: Use return key to post
Post by: Adonix on May 24, 2018, 02:53:25 PM
I'll think about it. Posting with enter does work if you setup the shoutbox to use a single line message field instead of a multiline (textarea). With a textarea it currently enters a newline.
Title: Re: Use return key to post
Post by: Chatter on May 25, 2018, 12:12:46 PM
Does single line field allow embedded returns (using say, Shift-return)?
Title: Re: Use return key to post
Post by: Adonix on May 25, 2018, 02:03:44 PM
The single line is just what it says "single line", so you cannot use any returns there. It is basically a html "input" field as opposed to the multiline "textarea".
Title: Re: Use return key to post
Post by: Chatter on May 25, 2018, 11:52:52 PM
Well, that won't work for us.  We need to able to have embedded returns in a shout.

Also, I'm curious: Why use Ctrl-return rather than Shift-return or opiton-return as with other sites?
Title: Re: Use return key to post
Post by: Adonix on May 26, 2018, 01:28:14 AM
The CTRL-Return option was asked for specifically a few years ago to submit a shout without having to press the shout button if used in a textarea (multi line field).
Title: Re: Use return key to post
Post by: Chatter on May 26, 2018, 02:47:24 AM
Oh sorry, my apologies.  it's the opposite of what I was asking for.
Shift-return or option-return should be for adding a newline.
Title: Re: Use return key to post
Post by: Adonix on May 27, 2018, 04:05:49 PM
I'll add it to the list. It's a bit of work though, so not something that will be there tomorrow as it needs an item to be added to the adminpanel.