console icon indicating copy to clipboard operation
console copied to clipboard

Fixes for Editor switching to next field on pressing Enter

Open ShreyamKeshri opened this issue 4 months ago • 1 comments

What does this PR do?

Fixes for Editor switching to next field on pressing Enter inside text area specific to Body component in Execution Create

Fixes https://github.com/appwrite/appwrite/issues/10607

Test Plan

Reproduction Steps:

  1. Go to the website and navigate to the Create Execution page in Appwrite.
  2. In the Body section, open the text editor to enter request content.
  3. Start typing some text.
  4. Press Enter or Shift+Enter inside the editor.

The cursor goes to the next line but the Accordion closes when user presses Enter key.

Check the attached recording for reference

https://github.com/user-attachments/assets/673b0f03-f0f3-4f99-ac96-1dbd98819a0a

Related PRs and Issues

  • https://github.com/appwrite/appwrite/issues/10607

Have you read the Contributing Guidelines on issues?

Yes

Summary by CodeRabbit

  • Bug Fixes
    • Prevents Enter in request body textareas from triggering parent actions, improving multiline editing.
  • Accessibility
    • Improved keyboard/interaction handling and semantic role for request body inputs to enhance usability for keyboard and assistive technology users.

ShreyamKeshri avatar Oct 07 '25 21:10 ShreyamKeshri