KeyboardEvent

extern class js.html.KeyboardEventextends UIEventAvailable in js

Deprecated

KeyboardEvent objects describe a user interaction with the keyboard. Each event describes a key; the event type (keydown, keypress, or keyup) identifies what kind of activity was performed.

Note: The KeyboardEvent interface is deprecated in DOM Level 3 in favor of the new TextInput interface and the corresponding textinput event, which have improved support for alternate input methods.  However, DOM Level 3 textinput events are not yet implemented in Gecko (as of version 6.0), so code written for Gecko browsers should continue to use KeyboardEvent for now.


Documentation for this class was provided by MDN.
var altGraphKey(default,null) : Bool var altKey(default,null) : Booltrue if the Alt (or Option, on Mac) key was active when the key event was generated. Read only. var ctrlKey(default,null) : Booltrue if the Control key was active when the key event was generated. Read only. var keyIdentifier(default,null) : String var keyLocation(default,null) : Int var metaKey(default,null) : Booltrue if the Meta (or Command, on Mac) key was active when the key event was generated. Read only. var shiftKey(default,null) : Booltrue if the Shift key was active when the key event was generated. Read only. function initKeyboardEvent( type : String, canBubble : Bool, cancelable : Bool, view : DOMWindow, keyIdentifier : String, keyLocation : Int, ctrlKey : Bool, altKey : Bool, shiftKey : Bool, metaKey : Bool, altGraphKey : Bool ) : Void
version #18292, modified 2013-05-01 11:57:44 by api
0 comment