The best way to control Claude Code, Codex and more from any computer or phone
fix(web): save PR body edits with Cmd/Ctrl+Enter (#10660)
oliver committed
Sep 10, 2026 at 11:37 UTC
60eff99f25dbfc9799043ad979537e2da1aea590
1 file changed
+14
-6
apps/web/src/components/pullRequest/PullRequestMarkdownEditor.tsx
+14
-6
@@ -55,11 +55,24 @@ export function PullRequestMarkdownEditor({
55
setDraft(value);
56
}
57
const empty = draft.trim().length === 0;
58
+ const saveDisabled = saving || (empty && !allowEmpty);
59
60
return (
61
<div
62
className={cn("space-y-2", className)}
63
onKeyDown={(event) => {
64
+ if (event.nativeEvent.isComposing || event.keyCode === 229) return;
65
+ if (
66
+ event.key === "Enter" &&
67
+ (event.metaKey || event.ctrlKey) &&
68
+ !event.shiftKey &&
69
+ !event.altKey
70
+ ) {
71
+ event.preventDefault();
72
+ event.stopPropagation();
73
+ if (!saveDisabled && !event.repeat) onSave(draft);
74
+ return;
75
+ }
76
if (event.key !== "Escape" || saving) return;
77
event.preventDefault();
78
onCancel();
@@ -106,12 +119,7 @@ export function PullRequestMarkdownEditor({
119
<Button size="xs" variant="ghost" disabled={saving} onClick={onCancel}>
120
Cancel
121
</Button>
109
- <Button
110
- size="xs"
111
- variant="outline"
112
- disabled={saving || (empty && !allowEmpty)}
113
- onClick={() => onSave(draft)}
114
- >
122
+ <Button size="xs" variant="outline" disabled={saveDisabled} onClick={() => onSave(draft)}>
123
{saving ? "Saving..." : "Save"}
124
</Button>
125
</div>