Skip to content

feat: Enter to submit, Shift+Enter for newline in comment editor#61

Merged
AmethystLiang merged 1 commit intomainfrom
AmethystLiang/editComment
Mar 23, 2026
Merged

feat: Enter to submit, Shift+Enter for newline in comment editor#61
AmethystLiang merged 1 commit intomainfrom
AmethystLiang/editComment

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

Summary

  • Add keyboard shortcut: Enter submits the comment, Shift+Enter inserts a new line
  • Add hint text below the textarea explaining the keyboard shortcuts
  • Fix pre-existing oxlint curly violations in the file

Closes #48

Test plan

  • Open "Edit Comment" dialog on a worktree
  • Type text and press Enter — should save and close the dialog
  • Type text and press Shift+Enter — should insert a new line
  • Verify the hint text "Press Enter to save, Shift+Enter for a new line." appears below the textarea

🤖 Generated with Claude Code

…ditor

Closes #48

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AmethystLiang AmethystLiang merged commit 67aa2af into main Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit Comment should use shift+enter to do line break and use "Enter" for submit

1 participant