提交 3ec75707 编写于 作者: R Rob Lourens

Prevent 'esc' on cell clearing focus

Other lists allow this but it's too easy to do accidentally
上级 93c2e7b0
......@@ -396,6 +396,10 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
}
setFocus(indexes: number[], browserEvent?: UIEvent): void {
if (!indexes.length) {
return;
}
if (this._viewModel) {
this._viewModel.selectionHandles = indexes.map(index => this.element(index)).map(cell => cell.handle);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册