Dart SDK
dart:html
KeyEvent
KeyEvent
constructor
KeyEvent
KeyEvent
Static properties
keyDownEvent
keyUpEvent
keyPressEvent
Properties
keyCode
charCode
altKey
which
currentTarget
clipboardData
ctrlKey
detail
keyLocation
layer
metaKey
page
shiftKey
view
location
repeat
wrapped
bubbles
cancelable
defaultPrevented
eventPhase
target
timeStamp
type
matchingTarget
path
Constructors
wrap
KeyEvent
Methods
getModifierState
preventDefault
stopImmediatePropagation
stopPropagation
KeyEvent
(
String
type
,
{
Window
view
,
bool
canBubble
:
true
,
bool
cancelable
:
true
,
int
keyCode
:
0
,
int
charCode
:
0
,
int
keyLocation
:
1
,
bool
ctrlKey
:
false
,
bool
altKey
:
false
,
bool
shiftKey
:
false
,
bool
metaKey
:
false
,
EventTarget
currentTarget
}
)
Programmatically create a new KeyEvent (and KeyboardEvent).