mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
support keyboard accessibility (#150749)
This commit is contained in:
parent
e35082f943
commit
1c2ba17092
|
@ -960,7 +960,7 @@ export class ExtensionEditor extends EditorPane {
|
|||
append(categoriesContainer, $('.additional-details-title', undefined, localize('categories', "Categories")));
|
||||
const categoriesElement = append(categoriesContainer, $('.categories'));
|
||||
for (const category of extension.categories) {
|
||||
this.transientDisposables.add(this.onClick(append(categoriesElement, $('span.category', undefined, category)), () => {
|
||||
this.transientDisposables.add(this.onClick(append(categoriesElement, $('span.category', { tabindex: '0' }, category)), () => {
|
||||
this.paneCompositeService.openPaneComposite(VIEWLET_ID, ViewContainerLocation.Sidebar, true)
|
||||
.then(viewlet => viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer)
|
||||
.then(viewlet => viewlet.search(`@category:"${category}"`));
|
||||
|
@ -988,7 +988,7 @@ export class ExtensionEditor extends EditorPane {
|
|||
append(extensionResourcesContainer, $('.additional-details-title', undefined, localize('resources', "Extension Resources")));
|
||||
const resourcesElement = append(extensionResourcesContainer, $('.resources'));
|
||||
for (const [label, uri] of resources) {
|
||||
this.transientDisposables.add(this.onClick(append(resourcesElement, $('a.resource', { title: uri.toString() }, label)), () => this.openerService.open(uri)));
|
||||
this.transientDisposables.add(this.onClick(append(resourcesElement, $('a.resource', { title: uri.toString(), tabindex: '0' }, label)), () => this.openerService.open(uri)));
|
||||
}
|
||||
if (extension.publisherSponsorLink) {
|
||||
const extensionSponsorContainer = append(resourcesElement, $('.extension-sponsor-container'));
|
||||
|
|
Loading…
Reference in a new issue