Skip to content

Commit fddd2fd

Browse files
committed
ctrl key
1 parent ad86a22 commit fddd2fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/HomePage/NotebookViewComponent.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ const NotebookViewComponent: FunctionComponent<NotebookViewComponentProps> = ({
215215
} else if (event.key === "ArrowDown") {
216216
onGoToNextCell();
217217
event.preventDefault();
218-
} else if (event.key === "a" && activeCellId) {
218+
} else if (event.key === "a" && !event.ctrlKey && activeCellId) {
219219
onAddCellBeforeCell(activeCellId);
220-
} else if (event.key === "b" && activeCellId) {
220+
} else if (event.key === "b" && !event.ctrlKey && activeCellId) {
221221
onAddCellAfterCell(activeCellId);
222-
} else if (event.key === "x" && activeCellId) {
222+
} else if (event.key === "x" && !event.ctrlKey && activeCellId) {
223223
const okayToDelete = window.confirm(
224224
"Are you sure you want to delete this cell?",
225225
);

0 commit comments

Comments
 (0)