From 5ff99c543406e60427373f531cd9bb049b5ea5b5 Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 30 Oct 2026 16:51:14 +0100 Subject: [PATCH] fix(workspace): ignore formatting shortcuts in read-only notes Co-Authored-By: Claude Opus 5.5 --- frontend/src/features/workspace/OutlinerBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/features/workspace/OutlinerBlock.tsx b/frontend/src/features/workspace/OutlinerBlock.tsx index 21e2f19..9a22cd0 100644 --- a/frontend/src/features/workspace/OutlinerBlock.tsx +++ b/frontend/src/features/workspace/OutlinerBlock.tsx @@ -645,7 +645,7 @@ export const OutlinerBlock: React.FC = ({ // Formatting shortcuts (Ctrl/Cmd+B, Ctrl/Cmd+I, Ctrl/Cmd+K) - not in code blocks const isMod = (e.ctrlKey || e.metaKey) && !e.altKey; - if (isMod && block.type !== 'code' && ['b', 'i', 'k'].includes(e.key.toLowerCase())) { + if (isMod && canEdit && block.type !== 'code' && ['b', 'i', 'k'].includes(e.key.toLowerCase())) { e.preventDefault(); e.stopPropagation();