1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop: Accessibility: Improve "change application layout" screen keyboard accessibility (#11718)

This commit is contained in:
Henry Heino
2025-01-27 08:18:37 -08:00
committed by GitHub
parent 827233605e
commit 762daa5a68
17 changed files with 337 additions and 153 deletions

View File

@@ -203,6 +203,14 @@ export default class PluginService extends BaseService {
return this.plugins_[id];
}
public safePluginNameById(id: string) {
if (!this.plugins_[id]) {
return id;
}
return this.pluginById(id).manifest?.name ?? 'Unknown';
}
public viewControllerByViewId(id: string): ViewController|null {
for (const [, plugin] of Object.entries(this.plugins_)) {
if (plugin.hasViewController(id)) return plugin.viewController(id);