📓 differenciate editor focus and list view focus
This commit is contained in:
parent
27e16bf5e2
commit
742687abf0
2 changed files with 2 additions and 2 deletions
|
@ -1600,7 +1600,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
|
|||
// a descendent of the notebook editor root.
|
||||
const focused = DOM.isAncestor(document.activeElement, this._overlayContainer);
|
||||
this._editorFocus.set(focused);
|
||||
this.viewModel?.setFocus(focused);
|
||||
this.viewModel?.setEditorFocus(focused);
|
||||
}
|
||||
|
||||
hasFocus() {
|
||||
|
|
|
@ -377,7 +377,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
|||
return this._selectionCollection.selections;
|
||||
}
|
||||
|
||||
setFocus(focused: boolean) {
|
||||
setEditorFocus(focused: boolean) {
|
||||
this._focused = focused;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue