Fix #149606. Refresh notebook editor focus on tab switching. (#157333)

This commit is contained in:
Peng Lyu 2022-08-05 14:38:03 -07:00 committed by GitHub
parent 7745a4595f
commit 4a0555d948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1855,6 +1855,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
// The notebook editor doesn't have focus yet
if (!this.hasEditorFocus()) {
this.focusContainer();
// trigger editor to update as FocusTracker might not emit focus change event
this.updateEditorFocus();
}
if (element && element.focusMode === CellFocusMode.Editor) {