Skip to content

Commit 25d92be

Browse files
Disable print keyboard shortcut to prevent command palette conflict (#358)
Co-authored-by: Cursor Agent <[email protected]>
1 parent bc50fb8 commit 25d92be

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/roam/src/components/canvas/uiOverrides.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ export const createUiOverrides = ({
400400

401401
const originalCopyAsSvgAction = actions["copy-as-svg"];
402402
const originalCopyAsPngAction = actions["copy-as-png"];
403+
const originalPrintAction = actions["print"];
403404

404405
actions["copy-as-svg"] = {
405406
...originalCopyAsSvgAction,
@@ -417,6 +418,15 @@ export const createUiOverrides = ({
417418
addToast({ title: "Copied as PNG" });
418419
},
419420
};
421+
422+
// Disable print keyboard binding to prevent conflict with command palette
423+
if (originalPrintAction) {
424+
actions["print"] = {
425+
...originalPrintAction,
426+
kbd: "", // Remove keyboard shortcut to prevent conflict
427+
};
428+
}
429+
420430
return actions;
421431
},
422432
translations: {

0 commit comments

Comments
 (0)