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

Submitting Forms with a Keyboard Shortcut #1141

Open
Jan-Eimertenbrink opened this issue Jan 30, 2025 · 0 comments
Open

Submitting Forms with a Keyboard Shortcut #1141

Jan-Eimertenbrink opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement New feature or request feedback

Comments

@Jan-Eimertenbrink
Copy link
Member

Description

We received internal feedback that it would be expected behavior to submit a form immediately using a keyboard shortcut when typing in a TextArea.

Suggested shortcuts:

Windows: Ctrl + Enter

Mac: Cmd + Enter

Research: How Others Handle It

This behavior is already implemented in many applications, including GitHub, GitLab, Gmail, Outlook, and more.

GitLab describes it in their styleguide as follows:

A Form should support the "quick submit" behavior, which allows it to be submitted from any control (including Markdown editors) using ⌘ + Enter (or Ctrl + Enter).
Note to developers: The quick submit behavior can be automatically added to a form using the js-quick-submit CSS class implemented in quick_submit.js.

Source: GitLab Style Guide – Quick Submit

Implementation

I suggest we implement Cmd + Enter / Ctrl + Enter as a keyboard shortcut. This would be particularly useful for form inputs like Markdown editors, TextAreas, and code inputs., fields where users expect Enter to create a new line rather than submit the form immediately.

@Jan-Eimertenbrink Jan-Eimertenbrink added enhancement New feature or request feedback labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback
Projects
None yet
Development

No branches or pull requests

1 participant