From 67f72b9357fe684d87d45202b92dbe97aee1a12b Mon Sep 17 00:00:00 2001 From: tmhglnd Date: Thu, 9 Jan 2025 15:57:38 +0100 Subject: [PATCH] fix for doc declared but unused error --- packages/web/src/components/editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/components/editor.tsx b/packages/web/src/components/editor.tsx index a9796d2..f574a94 100644 --- a/packages/web/src/components/editor.tsx +++ b/packages/web/src/components/editor.tsx @@ -69,7 +69,7 @@ const panicKeymap = ( : []; }; -const extraKeymap = ( doc: Document ) => { +const extraKeymap = () => { return keymap.of([ // fixes the Cmd/Alt-/ issue for Spanish keyboards { key: 'Shift-Cmd-7', run: toggleLineComment }, @@ -99,7 +99,7 @@ const flokSetup = ( remoteEvalFlash(doc), Prec.high(evalKeymap(doc, { defaultMode, web })), panicKeymap(doc), - extraKeymap(doc), + extraKeymap(), yCollab(text, doc.session.awareness, { undoManager, hideCaret: readOnly,