Exemple #1
0
        public void KeyPressed(object sender, KeyboardHook.KeyPressedEventArgs args)
        {
            if (args.Key == Keys.NumPad8)
            {
                Close();
                return;
            }

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