提交 a32f9326 编写于 作者: R rebornix

Fix #96558, markdown cell insertion

上级 ec9371ba
......@@ -233,7 +233,7 @@ abstract class AbstractCellRenderer {
addMarkdownCell.tabIndex = 0;
const insertMarkdownBelow = this.instantiationService.createInstance(InsertMarkdownCellAction);
disposables.add(DOM.addDisposableListener(addMarkdownCell, DOM.EventType.CLICK, e => {
this.actionRunner.run(insertMarkdownBelow, context);
this.actionRunner.run(insertMarkdownBelow, toolbarContext);
e.stopPropagation();
}));
......@@ -242,7 +242,7 @@ abstract class AbstractCellRenderer {
if ((event.equals(KeyCode.Enter) || event.equals(KeyCode.Space))) {
e.preventDefault();
e.stopPropagation();
this.actionRunner.run(insertMarkdownBelow, context);
this.actionRunner.run(insertMarkdownBelow, toolbarContext);
}
})));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册