fix keyboard focus issues (#16206)

This commit is contained in:
Alan Ren
2021-07-16 13:27:15 -07:00
committed by GitHub
parent 3847271e67
commit eed792f3db
19 changed files with 69 additions and 86 deletions

View File

@@ -58,10 +58,6 @@ export class QueryPlanView implements IPanelView {
this.container.style.height = dimension.height + 'px';
}
public focus() {
this.container.focus();
}
public clear() {
if (this.qp) {
this.qp.xml = undefined;

View File

@@ -47,13 +47,6 @@ export class QueryPlanEditor extends EditorPane {
this.view.render(parent);
}
/**
* Sets focus on this editor. Specifically, it sets the focus on the hosted text editor.
*/
public override focus(): void {
this.view.focus();
}
/**
* Updates the internal variable keeping track of the editor's size, and re-calculates the sash position.
* To be called when the container of this editor changes size.

View File

@@ -77,10 +77,6 @@ export class TopOperationsView extends Disposable implements IPanelView {
this.table.layout(dimension);
}
public focus(): void {
this.table.focus();
}
public clear() {
this.dataView.clear();
}