magma-labs / magma-chat

Ruby on Rails 7-based ChatGPT Bot Platform
https://magmachat.ai
Other
218 stars 27 forks source link

Input box does not support shift+enter in chat #15

Closed vicmaster closed 1 year ago

vicmaster commented 1 year ago

Issue Description

The input box in the chat does not allow the use of the "shift" + "enter" keys to add a line break. Instead, pressing "enter" triggers the send action. This behavior is unexpected and makes it difficult to write multi-line messages in the chat.

Steps to Reproduce

  1. Open the chat window.
  2. Type a message that spans multiple lines.
  3. Attempt to add a line break by pressing "shift" + "enter".
  4. Notice that the send action is triggered instead.

Expected Behavior

Pressing "shift" + "enter" should add a line break in the input box, allowing users to write multi-line messages in the chat.

Actual Behavior

Pressing "shift" + "enter" triggers the send action, making it difficult to write multi-line messages in the chat.

AbrahamAlexis commented 1 year ago

cosed as fixed