KeyboardEvent
Represents the event arguments for a keyboard event.
Gets if the alt key is pressed.
Gets if the control key is pressed.
Gets if the meta key is pressed.
Gets if the key press was repeated.
Gets if the shift key is pressed.
Gets string representation of the pressed key.
Gets the locale of the keyboard.
Gets the location of the keyboard that initiated the event.
public KeyboardEvent()
Creates a new event.
public KeyboardEvent(string type, bool bubbles = false, bool cancelable = false, IWindow view = null, int detail = 0, string key = null, KeyboardLocation location = 0, string modifiersList = null, bool repeat = false)
Creates a new event and initializes it.
Returns the current state of the specified modifier key.
public void Init(string type, bool bubbles, bool cancelable, IWindow view, int detail, string key, KeyboardLocation location, string modifiersList, bool repeat)
Initializes the keyboard event.