IceChat icon indicating copy to clipboard operation
IceChat copied to clipboard

Pasting a multiline string from the clipboard causes the message buffer to automatically submit to the server

Open gbakeman opened this issue 1 year ago • 3 comments

IceChat 9.53

I've just accidentally discovered that if I paste a multiline string into my chat buffer, it will automatically be sent to the server. It would be nice new line characters are ignored or escaped to help prevent these unintentional submissions.

Thanks for your work on this!

gbakeman avatar Jul 02 '23 19:07 gbakeman

Use the Multiline Edit Box to prevent this. It is an option under the View Menu.

icechat avatar Jul 02 '23 21:07 icechat

Fair enough, I'll check it out. I was hoping that default behavior of the single line box would be something like notifying the user of the problem (by way of a system sound, notification bubble, etc.) or just accept the text input and strip out the newlines. It was somewhat unexpected (and inconveinent for the channel members) for the accidental multiline paste to go straight to the server. Would it make sense to change this default behavior?

gbakeman avatar Jul 02 '23 21:07 gbakeman

I do not think so. This is why the multiline edit box was made as an option.

icechat avatar Jul 02 '23 21:07 icechat