Skip to content

Commit b5422e4

Browse files
committed
disable find
1 parent 032234b commit b5422e4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/editor/src/app/documentRenderers/notebook/NotebookCell.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import React, {
1010
useState,
1111
} from "react";
1212
import { VscChevronDown, VscChevronRight } from "react-icons/vsc";
13+
import { MonacoBinding } from "y-monaco";
1314
import { Awareness } from "y-protocols/awareness";
1415
import {
1516
getTypeCellCodeModel,
@@ -21,7 +22,6 @@ import { ExecutionHost } from "../../../runtime/executor/executionHosts/Executio
2122
import { getStoreService } from "../../../store/local/stores";
2223
import { HoverTrackerContext } from "./HoverTrackerContext";
2324
import { NotebookCellModel } from "./NotebookCellModel";
24-
import { MonacoBinding } from "y-monaco";
2525

2626
type Props = {
2727
cell: NotebookCellModel;
@@ -93,6 +93,13 @@ const NotebookCell: React.FC<Props> = observer((props) => {
9393
theme: "typecellTheme",
9494
});
9595

96+
// disable per-cell find command (https://github.com/microsoft/monaco-editor/issues/102)
97+
(newEditor as any)._standaloneKeybindingService.addDynamicKeybinding(
98+
"-actions.find",
99+
null, // keybinding
100+
() => {} // need to pass an empty handler
101+
);
102+
96103
if (initialFocus && initial.current) {
97104
initial.current = false;
98105
// newEditor.focus();

0 commit comments

Comments
 (0)