Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting to toggle ENTER, SHIFT+ENTER shortcuts in chat UI #86

Closed
JasonWeill opened this issue Apr 17, 2023 · 0 comments · Fixed by #164
Closed

Setting to toggle ENTER, SHIFT+ENTER shortcuts in chat UI #86

JasonWeill opened this issue Apr 17, 2023 · 0 comments · Fixed by #164
Assignees
Labels
enhancement New feature or request @jupyter-ai/chatui
Milestone

Comments

@JasonWeill
Copy link
Collaborator

Problem

I would like ENTER to send a message in the Jupyter AI chat UI, but it adds a new line.

Proposed Solution

Provide an option to switch the shortcut behavior.

When the option is disabled, ENTER adds a new line, and SHIFT+ENTER sends the message.

When the option is enabled, ENTER sends the message, and SHIFT+ENTER adds a new line.

Additional context

If #85 is fixed, the hints should reflect the current preference.

macOS UI conventions treat ENTER (typically on the numeric keypad) and RETURN (typically in the same row as the middle row of letters) as two separate keys. On Windows and Linux, even though the keys on the numpad and in the letter-key row send different scan codes, UIs tend to treat them identically.

Slack's "Advanced" preferences pane has options to change this behavior, and to handle code blocks bounded by ``` specially:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @jupyter-ai/chatui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants