Overview

I've been testing the code editor and I noticed it would be nice to save the "Add new code component" by pressing enter instead of having to click "Add". It seems to be what I'm doing most of the time naturally so I assume there are some other users who are using it the same way 😇

Proposed resolution

User interface changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

omkar-pd made their first commit to this issue’s fork.

omkar-pd’s picture

Status: Active » Needs review
wim leers’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Usability
omkar-pd’s picture

Made the requested changes.

omkar-pd’s picture

Status: Reviewed & tested by the community » Needs review
meghasharma’s picture

I tested this issue on my local setup. Before checking out this branch, pressing Enter in the 'Add new code component' modal was not submitting the form, and I had to manually click the 'Add' button.
After switching to the issue branch, I verified that pressing Enter now successfully submits the form without needing to click the button.

wim leers’s picture

Assigned: Unassigned » jessebaker
Status: Needs review » Reviewed & tested by the community

  • jessebaker committed 1784522e on 0.x authored by omkar-pd
    Issue #3507918 by omkar-pd, meghasharma, jessebaker: The "Add new code...
jessebaker’s picture

Assigned: jessebaker » Unassigned
Status: Reviewed & tested by the community » Fixed

Great stuff, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.