File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
apps/roam/src/components/canvas Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments