mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 17:23:25 -05:00
fix keyboard focus issues (#16206)
This commit is contained in:
@@ -206,9 +206,6 @@ export class ChartView extends Disposable implements IPanelView {
|
||||
}
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
}
|
||||
|
||||
public set queryRunner(runner: QueryRunner) {
|
||||
this._queryRunner = runner;
|
||||
this.fetchData();
|
||||
|
||||
@@ -362,8 +362,7 @@ export class ProfilerEditor extends EditorPane {
|
||||
title: nls.localize('text', "Text"),
|
||||
view: {
|
||||
layout: dim => this._editor.layout(dim),
|
||||
render: parent => parent.appendChild(editorContainer),
|
||||
focus: () => this._editor.focus()
|
||||
render: parent => parent.appendChild(editorContainer)
|
||||
},
|
||||
tabSelectedHandler: expandPanel
|
||||
});
|
||||
@@ -417,8 +416,7 @@ export class ProfilerEditor extends EditorPane {
|
||||
title: nls.localize('details', "Details"),
|
||||
view: {
|
||||
layout: dim => this._detailTable.layout(dim),
|
||||
render: parent => parent.appendChild(detailTableContainer),
|
||||
focus: () => this._detailTable.focus()
|
||||
render: parent => parent.appendChild(detailTableContainer)
|
||||
},
|
||||
tabSelectedHandler: expandPanel
|
||||
});
|
||||
|
||||
@@ -63,9 +63,6 @@ export class QueryModelViewTabView implements IPanelView {
|
||||
public layout(dimension: Dimension): void {
|
||||
}
|
||||
|
||||
public focus(): void {
|
||||
}
|
||||
|
||||
public get componentId(): string {
|
||||
return this.state.componentId;
|
||||
}
|
||||
|
||||
@@ -44,10 +44,6 @@ class MessagesView extends Disposable implements IPanelView {
|
||||
this.messagePanel.layout(dimension);
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
this.messagePanel.focus();
|
||||
}
|
||||
|
||||
public clear() {
|
||||
this.messagePanel.clear();
|
||||
}
|
||||
@@ -83,10 +79,6 @@ class ResultsView extends Disposable implements IPanelView {
|
||||
this.gridPanel.layout(dimension);
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
this.gridPanel.focus();
|
||||
}
|
||||
|
||||
public clear() {
|
||||
this.gridPanel.clear();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user