registerGlobalHotkey method
Register a global hotkey.
Implementation
@override
void registerGlobalHotkey(
String key,
List<String> modifiers,
void Function() callback,
) {
final id = '${modifiers.join("+")}+$key';
_hotkeys[id] = callback;
// Actual global hotkey registration requires a native plugin.
// This stores the intent so a plugin can consume it.
}