#183
Cmd+enter hotkey for every
Summary
Added hotkey submission for every form in web app
Changes
- markdown-editor.tsx
- every place where it's used and can be submitted
Test Plan
- go to issue(for example) write reply and hit cmd+enter while been focused in textarea
Summary by CodeRabbit
Release Notes
- New Features
- Added keyboard shortcut support (Ctrl/Cmd+Enter) to submit forms, comments, replies, and reviews across the dashboard for faster submission without clicking the submit button
- Enhanced visual feedback with improved cursor styling on interactive elements to clearly indicate clickability
Activity
6hey, you have changes from https://github.com/stylessh/diffkit/pull/181 in this pr. can you remove them?
done
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
eb321216-edbb-4646-9a9e-d1795bcd8363📥 Commits
Reviewing files that changed from the base of the PR and between 94ca24080d10dd2e59513db729b3a5135410e51d and 2f54a0a116157e867ee42731a4be38d0f7517ece.
📒 Files selected for processing (10)
apps/dashboard/src/components/compare/compare-form.tsxapps/dashboard/src/components/details/comment-reply-form.tsxapps/dashboard/src/components/details/detail-activity.tsxapps/dashboard/src/components/issues/new/new-issue-page.tsxapps/dashboard/src/components/pulls/detail/pull-body-section.tsxapps/dashboard/src/components/pulls/detail/pull-detail-activity.tsxapps/dashboard/src/components/pulls/review/review-file-diff-block.tsxapps/dashboard/src/components/pulls/review/review-submit-popover.tsxpackages/ui/src/components/markdown-editor.tsxpackages/ui/src/styles/globals.css📝 Walkthrough
Walkthrough
This PR adds keyboard shortcut support across the dashboard by introducing a new
onModEntercallback prop to theMarkdownEditorcomponent and adding Mod+Enter (Ctrl+Enter or Cmd+Enter) handlers to form inputs and editors in nine components. Global CSS styling updates cursor appearance for interactive elements.Changes
packages/ui/src/components/markdown-editor.tsxonModEnteroptional callback prop that triggers when user presses Ctrl/Cmd+Enter, preventing default behavior and stopping propagation.apps/dashboard/src/components/compare/compare-form.tsx,apps/dashboard/src/components/issues/new/new-issue-page.tsx,apps/dashboard/src/components/pulls/detail/pull-body-section.tsxapps/dashboard/src/components/details/comment-reply-form.tsx,apps/dashboard/src/components/details/detail-activity.tsx,apps/dashboard/src/components/pulls/review/review-file-diff-block.tsx,apps/dashboard/src/components/pulls/review/review-submit-popover.tsxapps/dashboard/src/components/pulls/detail/pull-detail-activity.tsxpackages/ui/src/styles/globals.csscursor: pointeron interactive elements (buttons, links, inputs, labels, ARIA roles) andcursor: not-allowedon disabled states.Estimated code review effort
🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.