Exemple #1
0
 bool UnregisterHotKeyWorker(string handle)
 {
     try
     {
         if (!string.IsNullOrEmpty(handle) &&
             hkContexts.TryRemove(handle, out var context) &&
             hkWindow != null)
         {
             return(hkWindow.UnregisterHotKey(context));
         }
     }
     catch { }
     return(false);
 }