Ejemplo n.º 1
0
        public static bool HandleKey(MainForm form, QueryControl qc, Keys keyData)
        {
            HotKeyManager manager = new HotKeyManager(form, qc);

            if (manager.HandleCommonQuerylessKeys(keyData))
            {
                return(true);
            }
            if (manager.CurrentQueryControl == null)
            {
                return(false);
            }
            if (manager.HandleCommonKeys(keyData))
            {
                return(true);
            }
            if (UseStudioKeys)
            {
                return(manager.HandleStudioKey(keyData));
            }
            return(manager.HandleSSMSKey(keyData));
        }
Ejemplo n.º 2
0
 public static bool HandleKey(MainForm form, QueryControl qc, Keys keyData)
 {
     HotKeyManager manager = new HotKeyManager(form, qc);
     if (manager.HandleCommonQuerylessKeys(keyData))
     {
         return true;
     }
     if (manager.CurrentQueryControl == null)
     {
         return false;
     }
     if (manager.HandleCommonKeys(keyData))
     {
         return true;
     }
     if (UseStudioKeys)
     {
         return manager.HandleStudioKey(keyData);
     }
     return manager.HandleSSMSKey(keyData);
 }