提交 7a8ed236 编写于 作者: S Sandeep Somavarapu

Read results also when filtered

上级 7e8371c4
...@@ -407,7 +407,7 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor ...@@ -407,7 +407,7 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor
const filter = this.searchWidget.getValue(); const filter = this.searchWidget.getValue();
const keybindingsEntries: IKeybindingItemEntry[] = this.keybindingsEditorModel.fetch(filter, this.sortByPrecedence.checked); const keybindingsEntries: IKeybindingItemEntry[] = this.keybindingsEditorModel.fetch(filter, this.sortByPrecedence.checked);
this.ariaLabelElement.setAttribute('aria-label', this.getAriaLabel()); this.ariaLabelElement.setAttribute('aria-label', this.getAriaLabel(keybindingsEntries));
if (keybindingsEntries.length === 0) { if (keybindingsEntries.length === 0) {
this.latestEmptyFilters.push(filter); this.latestEmptyFilters.push(filter);
...@@ -437,11 +437,11 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor ...@@ -437,11 +437,11 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor
} }
} }
private getAriaLabel(): string { private getAriaLabel(keybindingsEntries: IKeybindingItemEntry[]): string {
if (this.sortByPrecedence.checked) { if (this.sortByPrecedence.checked) {
return localize('show sorted keybindings', "Showing Keybindings in precendence order"); return localize('show sorted keybindings', "Showing {0} Keybindings in precendence order", keybindingsEntries.length);
} else { } else {
return localize('show keybindings', "Showing Keybindings in alphabetical order"); return localize('show keybindings', "Showing {0} Keybindings in alphabetical order", keybindingsEntries.length);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册