Click or drag to resize

KeyEventArgs Class

Arguments for key press events
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class KeyEventArgs : EventArgs

The KeyEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodKeyEventArgs
Initializes a new instance of the KeyPressEventArgs class for a character key press
Top
Properties
  NameDescription
Public propertyAlt
Gets whether the alt key was pressed/released for the event
Public propertyApplication
Gets whether the application key was pressed/released for the event
Public propertyControl
Gets whether the control key was pressed/released for the event
Public propertyHandled
Gets or sets a value indicating that this event was handled by user code
Public propertyIsChar
Gets a value indicating that the key press corresponds to a character input value
Public propertyKey
Gets the key value (without modifiers)
Public propertyKeyChar
Gets the key character corresponding to the key press (if IsChar is true)
Public propertyKeyData
Gets the raw key data (the combination of the Key and Modifiers)
Public propertyKeyEventType
Gets the type of the key event.
Public propertyModifiers
Gets the modifier keys that were pressed for this event
Public propertyShift
Gets whether the shift key was pressed/released for the event
Top
Methods
  NameDescription
Public methodIsKeyDown
Determines whether the specified key and modifier was pressed
Public methodIsKeyUp
Determines whether the specified key and modifier was released
Top
See Also