pluginByShortcut method
Resolves a plugin bound to a plugin-level shortcut key.
Implementation
@override
PluginConfig? pluginByShortcut(String shortcut, Device? device) {
final key = shortcut.toLowerCase();
for (final plugin in _plugins) {
if (plugin.shortcut == key && plugin.hasCommandsFor(device)) {
return plugin;
}
}
return null;
}