@devries-cameron20 / t3code Mirror · read-only / commits / f45c6b4a75
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 01:30 UTC

fix(web): submit PR comments with Cmd/Ctrl+Enter (#11994)

oliver committed Sep 16, 2026 at 08:56 UTC f45c6b4a755905485431872f4a4188de3ed05974
1 file changed +13
apps/web/src/components/pullRequest/PullRequestCommentComposer.tsx
+13
@@ -123,6 +123,19 @@ export function PullRequestCommentComposer({
123 placeholder="Leave a comment"
124 aria-label="Comment on this pull request"
125 onChange={(event) => setBody(event.target.value)}
126 + onKeyDown={(event) => {
127 + if (event.nativeEvent.isComposing || event.keyCode === 229) return;
128 + if (
129 + event.key === "Enter" &&
130 + (event.metaKey || event.ctrlKey) &&
131 + !event.shiftKey &&
132 + !event.altKey
133 + ) {
134 + event.preventDefault();
135 + event.stopPropagation();
136 + if (!event.repeat) void submit("comment");
137 + }
138 + }}
139 />
140 <div className="flex flex-wrap justify-end gap-2">
141 {followUpAction === null ? null : (