Class KeyEventArgs
- Namespace
- BSGameLib.UI
- Assembly
- BSGameLib.UI.dll
The arguments for a key event: which key, and which modifier keys were held.
public class KeyEventArgs : EventArgs
- Inheritance
-
KeyEventArgs
- Inherited Members
Constructors
KeyEventArgs()
Creates arguments with no key and no modifier keys held.
public KeyEventArgs()
KeyEventArgs(Key)
Creates arguments for key, with no modifier keys held.
public KeyEventArgs(Key key)
Parameters
keyKey
KeyEventArgs(Key, bool, bool, bool, bool)
Creates arguments for key with the modifier keys given.
public KeyEventArgs(Key key, bool control, bool shift, bool alt, bool caps)
Parameters
Fields
Alt
Whether Alt was held.
public bool Alt
Field Value
Caps
Whether Caps Lock was on.
public bool Caps
Field Value
Control
Whether Control was held.
public bool Control
Field Value
Key
The key that was pressed or released.
public Key Key
Field Value
Shift
Whether Shift was held.
public bool Shift