From 084fde1e341a3a2de9105c00f037c2975df63c55 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 14 Nov 2024 10:48:22 -0800 Subject: [PATCH] comment --- gui/src/components/mainInput/handleMetaKeyPress.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/handleMetaKeyPress.ts b/gui/src/components/mainInput/handleMetaKeyPress.ts index fd122350f..e01a48715 100644 --- a/gui/src/components/mainInput/handleMetaKeyPress.ts +++ b/gui/src/components/mainInput/handleMetaKeyPress.ts @@ -1,6 +1,6 @@ +import { Editor } from "@tiptap/react"; import { KeyboardEvent } from "react"; import { isWebEnvironment } from "../../util"; -import { Editor } from "@tiptap/react"; const isWebEnv = isWebEnvironment(); @@ -46,6 +46,10 @@ export const handleJetBrainsMetaKeyPress = ( } }; +/** + * We use this for VS Code to fix an .ipynb bug + * And we use it in JetBrains when OSR is turned on + */ export const handleMetaKeyPress = async (e: KeyboardEvent, editor: Editor) => { const text = editor.state.doc.textBetween( editor.state.selection.from,