-
Notifications
You must be signed in to change notification settings - Fork 2k
Labels
β¨New featureπ Help wantedOpen to participation from the communityOpen to participation from the communityπ° GUIRelated to GUIRelated to GUIπ© Priority: LowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed
Description
π Feature Description
Hi!
When I create a chat element with;
tgb.chat("{messages}", users="{users}", sender_id="{users[0]}", on_action=chat)It creates a chat interface. But the input field doesn't accept newlines, even if I add \n, the screen would print the \n. Even if I copy-paste a text with a newline into the chat input, it transforms them into spaces.
It would be nice to be able to add newlines (either from copy-pasted text or from a ctrl + enter command). This would make chatting a way better experience.
π Code of Conduct
- I have checked the existing issues to avoid duplicates.
- I am willing to work on this issue (optional)
β Acceptance Criteria
- A working demo or example code (if applicable) is provided.
- Integration tests demonstrate the new functionality.
- Any new code is covered by unit tests.
- Code coverage remains at least 90%.
- Related documentation updates and release notes are created.
Metadata
Metadata
Assignees
Labels
β¨New featureπ Help wantedOpen to participation from the communityOpen to participation from the communityπ° GUIRelated to GUIRelated to GUIπ© Priority: LowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed