public static IAsyncGlobalShortcutHandler ToGlobalShortcutHandler(this IGlobalShortcutHandler handler, string callbackId) => new GlobalShortcutHandlerAsyncWrapper(handler).ToGlobalShortcutHandler(callbackId);
public static IAsyncGlobalShortcutHandler ToGlobalShortcutHandler(this IGlobalShortcutHandler handler) => new GlobalShortcutHandlerAsyncWrapper(handler);
public TConfig RegisterGlobalShortcutHandler(string callbackId, IGlobalShortcutHandler handler) => RegisterAsyncGlobalShortcutHandler(callbackId, handler.ToGlobalShortcutHandler());
public TConfig RegisterGlobalShortcutHandler(IGlobalShortcutHandler handler) => RegisterAsyncGlobalShortcutHandler(handler.ToGlobalShortcutHandler());
public GlobalShortcutHandlerAsyncWrapper(IGlobalShortcutHandler syncHandler) => _syncHandler = syncHandler;