comment
This commit is contained in:
parent
39a8e158cf
commit
084fde1e34
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue