KeyboardEvent class

Annotated by:
  • DomName('KeyboardEvent')
Extends:
Implementors

Constructors

KeyboardEvent ( String type, {Window view, bool canBubble: true, bool cancelable: true, int keyLocation: 1, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false} )

Constants

DOM_KEY_LOCATION_LEFT = 0x01
DOM_KEY_LOCATION_NUMPAD = 0x03
DOM_KEY_LOCATION_RIGHT = 0x02
DOM_KEY_LOCATION_STANDARD = 0x00

Instance Properties

keyCode int
read-only
charCode int
read-only
altKey bool
read-only
ctrlKey bool
read-only
keyLocation int
read-only
location int
read-only
metaKey bool
read-only
repeat bool
read-only
shiftKey bool
read-only
matchingTarget Element Inherited
read-only
bubbles bool Inherited
read-only
cancelable bool Inherited
read-only
clipboardData DataTransfer Inherited
read-only
currentTarget EventTarget Inherited
read-only
defaultPrevented bool Inherited
read-only
eventPhase int Inherited
read-only
path List<Node> Inherited
read-only
target EventTarget Inherited
read-only
timeStamp int Inherited
read-only
type String Inherited
read-only
detail int Inherited
read-only
view WindowBase Inherited
read-only
which int Inherited
read-only
layer Point Inherited
read-only
page Point Inherited
read-only

Instance Methods

getModifierState ( String keyArgument ) → bool
preventDefault Inherited ( ) → void
stopImmediatePropagation Inherited ( ) → void
stopPropagation Inherited ( ) → void