Arguments for key pressed event which contain information about pressed hot key.
Inheritance: System.EventArgs
Example #1
0
 private void HotKeyManagerPressed(object sender, KeyPressedEventArgs e)
 {
     tbAlias.Clear();
     this.ShowForm();
     this.TopLevel = true;
 }
Example #2
0
 private void HkManagerOnKeyPressed(object sender, KeyPressedEventArgs e)
 {
     _menuStrip.Show();
     if (_locationOfIcon != null)
         _menuStrip.Location = (Point)_locationOfIcon;
     _menuStrip.Focus();
 }
Example #3
0
 private static void HotKeyManagerPressed(object sender, KeyPressedEventArgs e)
 {
     var hotkey = e.HotKey;
     HotKeyCallBackHandler callback;
     if (_keymap.TryGetValue(hotkey, out callback))
         callback();
 }
Example #4
0
 private void Manager_KeyPressed(object sender, KeyPressedEventArgs e)
 {
     if (e.HotKey != null)
         _actions[e.HotKey]();
 }
Example #5
0
 private void onKeyPressed(KeyPressedEventArgs e)
 {
     var handler = KeyPressed;
     if (handler != null)
         handler(this, e);
 }