예제 #1
0
파일: QcmdHostForm.cs 프로젝트: aevv/qcmd
        public void KeyPressed(object sender, KeyboardHook.KeyPressedEventArgs args)
        {
            if (args.Key == Keys.NumPad8)
            {
                Close();
                return;
            }

            ToggleVisibility();
            FocusInput();
        }
예제 #2
0
 private static void Hotkey_KeyPressed(object sender, KeyboardHook.KeyPressedEventArgs e)
 {
     Trace.WriteLine($"HotkeyService Hotkey_KeyPressed");
     KeyPressed?.Invoke(s_hook, e);
 }