Click or drag to resize

IKeyEvent Interface

Represents a keyboard event and provides an access to specific keyboard event data.

This event occurs when a user performs some keyboard action, for example presses or releases a keyboard key.

Namespace:  DotNetBrowser.Dom.Events
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.0
Syntax
C#
public interface IKeyEvent : IUiKeyEventModifier, 
	IEvent, IAutoDisposable

The IKeyEvent type exposes the following members.

Properties
  NameDescription
Public propertyBubbles
Indicates whether an event is a bubbling event.
(Inherited from IEvent.)
Public propertyCancelable
Indicates whether an event can have its default action prevented.
(Inherited from IEvent.)
Public propertyCharacter
Gets the character generated by pressing the key.
Public propertyCurrentTarget
Gets the IEventTarget whose event listeners are currently being processed.
(Inherited from IEvent.)
Public propertyEventPhase
Gets the phase of event flow.
(Inherited from IEvent.)
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyKeyCode
Gets the key code that represents a physical key on the keyboard.
Public propertyKeyModifiers
Gets the key modifiers that are applied to the event.
(Inherited from IUiKeyEventModifier.)
Public propertyTarget
Gets the IEventTarget to which the event was originally dispatched.
(Inherited from IEvent.)
Public propertyType
Gets the type of this DOM event.
(Inherited from IEvent.)
Top
Methods
  NameDescription
Public methodPreventDefault
Cancels the event if it is cancelable, without stopping further propagation of the event.
(Inherited from IEvent.)
Public methodStopPropagation
Prevents further propagation of the current event.
(Inherited from IEvent.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
See Also