private void OnKeyPressed(object sender, GlobalHotKey.KeyPressedEventArgs e) { if (!Window.IsValidTarget()) { return; } Log.Message("Window.GetActiveWindowTitle(): " + Window.GetActiveWindowTitle()); Log.Message("Window.IsValidTarget(): " + Window.IsValidTarget()); if (!Settings.SpamKeys.ContainsKey(e.HotKey.Key)) { return; } UseSkill(Settings.SpamKeys[e.HotKey.Key]); }
private void HotKeyManagerPressed(object sender, KeyPressedEventArgs e) { tbAlias.Clear(); this.ShowForm(); this.TopLevel = true; }
private void HkManagerOnKeyPressed(object sender, KeyPressedEventArgs e) { _menuStrip.Show(); if (_locationOfIcon != null) _menuStrip.Location = (Point)_locationOfIcon; _menuStrip.Focus(); }
private void Manager_KeyPressed(object sender, KeyPressedEventArgs e) { if (e.HotKey != null) _actions[e.HotKey](); }
private static void HotKeyManagerPressed(object sender, KeyPressedEventArgs e) { var hotkey = e.HotKey; HotKeyCallBackHandler callback; if (_keymap.TryGetValue(hotkey, out callback)) callback(); }
private void onKeyPressed(KeyPressedEventArgs e) { var handler = KeyPressed; if (handler != null) handler(this, e); }