mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix tab focus for select box (#8349)
This commit is contained in:
@@ -108,12 +108,16 @@ export class SelectBox extends vsSelectBox {
|
|||||||
if (e.keyCode === KeyCode.Enter || e.keyCode === KeyCode.Escape) {
|
if (e.keyCode === KeyCode.Enter || e.keyCode === KeyCode.Escape) {
|
||||||
dom.EventHelper.stop(e, true);
|
dom.EventHelper.stop(e, true);
|
||||||
}
|
}
|
||||||
|
if (e.keyCode === KeyCode.Tab) {
|
||||||
|
// Set focus back to the input box so that it moves to the next item in the list correctly since
|
||||||
|
// the context menu isn't in the same place in the DOM so will likely result in an unexpected element
|
||||||
|
// getting the next focus
|
||||||
|
this.focus();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public style(styles: ISelectBoxStyles): void {
|
public style(styles: ISelectBoxStyles): void {
|
||||||
super.style(styles);
|
super.style(styles);
|
||||||
this.enabledSelectBackground = this.selectBackground;
|
this.enabledSelectBackground = this.selectBackground;
|
||||||
|
|||||||
Reference in New Issue
Block a user