mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
Set tabindex on output container so focus/blur listeners will fire
Fix #142239
This commit is contained in:
parent
755bc5f7bf
commit
82a65e1a8d
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue