Skip to content

feat(review): add Cmd/Ctrl+Shift+Y shortcut to copy feedback - #1155

Draft
rian-dolphin wants to merge 1 commit into
backnotprop:mainfrom
rian-dolphin:feat/copy-feedback-shortcut
Draft

feat(review): add Cmd/Ctrl+Shift+Y shortcut to copy feedback#1155
rian-dolphin wants to merge 1 commit into
backnotprop:mainfrom
rian-dolphin:feat/copy-feedback-shortcut

Conversation

@rian-dolphin

@rian-dolphin rian-dolphin commented Jul 30, 2026

Copy link
Copy Markdown

This change adds a keyboard shortcut to the code review UI. The shortcut is Cmd/Ctrl+Shift+Y. The shortcut copies the review feedback to the clipboard.

Before this change, the user must click two controls. First, the user clicks the comment icon in the header. Then the user clicks the Copy Feedback button.

Method

The handleCopyFeedback callback is available already in App.tsx. A new effect connects the keys to that callback. The effect uses the same guards as the Cmd/Ctrl+Enter effect:

  • The effect does not operate when the focus is in an input field or a text area.
  • The effect does not operate when a dialog is open.

A new entry in packages/review-editor/shortcuts.ts declares the shortcut. Thus the Settings list shows the shortcut automatically.

Key selection

Mod+Shift+Y is free in the code review registry. Mod+Shift+C is not free, because the browser uses those keys for the developer tools. Tell me if you prefer different keys or push a commit to update etc.

Tests

bun test gives 2440 pass and 22 fail. The same 22 tests also fail on main. Thus these failures are not related to this change.

@rian-dolphin
rian-dolphin force-pushed the feat/copy-feedback-shortcut branch from 5a0e5a9 to 36037e8 Compare July 30, 2026 12:42
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.

1 participant