freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

Add Keyboard Shortcut (Ctrl + Enter) for "Check Your Answer" Button

Open DaneshCode opened this issue 9 months ago • 9 comments

Is your feature request related to a problem? Please describe.

Currently, in the A2 English for Developers (Beta) and B1 English for Developers (Beta) courses, the "Submit and go to next challenge" button has a Ctrl + Enter shortcut, which makes navigation faster and improves the user experience. However, the "Check Your Answer" button lacks a similar shortcut, requiring users to manually click it each time.

To maintain consistency and enhance accessibility, I propose adding the Ctrl + Enter shortcut for the "Check Your Answer" button as well. This will allow users to quickly verify their answers without needing to switch between the keyboard and mouse.

Steps to Reproduce:

  1. Open any challenge in the A2 English for Developers (Beta) or B1 English for Developers (Beta) courses.
  2. Answer a question and attempt to check the answer using Ctrl + Enter.
  3. Notice that the shortcut does not work, requiring manual clicking.

Describe the solution you'd like

Suggested Fix:

  • Implement the Ctrl + Enter shortcut for the "Check Your Answer" button, just like the "Submit and go to next challenge" button.

This small change would make the learning process smoother and more efficient for users. Thanks for considering this improvement!

Image

Image

Describe alternatives you've considered

One alternative is to manually click the "Check Your Answer" button, but this disrupts the learning flow and slows down navigation, especially for users who prefer keyboard shortcuts.

Another alternative is to use browser extensions or custom scripts (e.g., via JavaScript) to bind Ctrl + Enter to the button, but this is not user-friendly and requires technical knowledge that many learners may not have.

Adding the shortcut directly to freeCodeCamp ensures a seamless, consistent, and accessible experience for all users.

Additional context

No response

DaneshCode avatar Mar 12 '25 08:03 DaneshCode