Skip to content

Commit dc71d5f

Browse files
authored
fix(desktop): restore the review shortcut (#62567)
1 parent fe0a88c commit dc71d5f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/desktop/src/main

‎packages/desktop/src/main/ipc.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export const registerIpcHandlers = Effect.gen(function* () {
5858

5959
const wire = (win: BrowserWindow) => {
6060
win.webContents.on("before-input-event", (_event, input) => {
61-
// Ctrl+R renames the session in the renderer, so the default menu's Reload must not take it.
61+
// Ctrl+R renames the session and Ctrl+Shift+R toggles review in the renderer,
62+
// so the default menu's Reload and Force Reload must not take them.
6263
win.webContents.setIgnoreMenuShortcuts(
63-
input.control && !input.meta && !input.shift && !input.alt && input.key.toLowerCase() === "r",
64+
input.control && !input.meta && !input.alt && input.key.toLowerCase() === "r",
6465
)
6566

6667
if (input.type !== "keyDown" || input.key !== "Escape") return

0 commit comments

Comments
 (0)