From b6c163377b31bb76f6702117f682b2b2941a8a01 Mon Sep 17 00:00:00 2001 From: Tyler Natsuhara Date: Thu, 29 Feb 2024 20:02:41 -0800 Subject: [PATCH] print preventDefault --- src/components/UI.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/UI.tsx b/src/components/UI.tsx index 6cf9dbe..1011052 100644 --- a/src/components/UI.tsx +++ b/src/components/UI.tsx @@ -69,6 +69,7 @@ export const UI = () => { e.preventDefault() saveFn() } else if (e.key === 'p') { + e.preventDefault() printDoc() } }