Set tabindex on output container so focus/blur listeners will fire

Fix #142239
This commit is contained in:
Rob Lourens 2022-02-17 20:59:08 -08:00
parent 755bc5f7bf
commit 82a65e1a8d
2 changed files with 2 additions and 0 deletions

View file

@ -605,6 +605,7 @@ var requirejs = (function() {
const latestCell = this.notebookEditor.getCellByInfo(resolvedResult.cellInfo);
if (latestCell) {
latestCell.outputIsFocused = true;
this.notebookEditor.focusNotebookCell(latestCell, 'container', { skipReveal: true });
}
}
break;

View file

@ -2007,6 +2007,7 @@ async function webviewPreloads(ctx: PreloadContext) {
left: number,
) {
this.element = document.createElement('div');
this.element.setAttribute('tabindex', '-1');
this.element.id = outputId;
this.element.classList.add('output');
this.element.style.position = 'absolute';