OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
214 stars 68 forks source link

`Shift` + `Enter` in livestream chat should add a new line to input instead of sending the message #1568

Closed Abwasserrohr closed 2 years ago

Abwasserrohr commented 2 years ago

Is your feature request related to a problem? Please describe. If I want to have a chat message with line breaks, I usually use shift + enter to go to the next line. It works on Twitch and Discord this way, but on Odysee, it just sends the message. Having the option to manually add a new line is great and I miss this feature.

Describe the solution you'd like Add a line break if user presses shift + enter in livestream chat input instead of sending the message.

Describe alternatives you've considered One could argue that enter could just not submit the chat message, but I feel that would be worse than having no new line feature at all.

Additional context I recorded trying to add multiple lines using shift + enter, which did not work, but copy & paste some new lines worked:

https://user-images.githubusercontent.com/44294954/170268319-98edc785-81fd-4cf3-a305-1bba1b1f6528.mp4

tzarebczan commented 2 years ago

Don't think we want to support new lines on livechat, this could cause very long messages. I don't think youtube allows this? If so, we can consider re-opening, but would require more work to restrict vertically long messages.

Abwasserrohr commented 2 years ago

Yeah, YouTube doesn't allow it, and while Twitch allows it in the input field, they actually are just removing them after posting it, not sure if that's a new thing or not. So probably not a good idea to have support for multiple lines.

But then, it shouldn't allow me to copy & paste them in either, since that bypasses the protection.