19 lines
675 B
Haxe
19 lines
675 B
Haxe
package flash.events;
|
|
|
|
extern class KeyboardEvent extends Event {
|
|
var altKey : Bool;
|
|
var charCode : UInt;
|
|
#if air
|
|
var commandKey : Bool;
|
|
#end
|
|
var controlKey : Bool;
|
|
var ctrlKey : Bool;
|
|
var keyCode : UInt;
|
|
var keyLocation : flash.ui.KeyLocation;
|
|
var shiftKey : Bool;
|
|
function new(type : String, bubbles : Bool = true, cancelable : Bool = false, charCodeValue : UInt = 0, keyCodeValue : UInt = 0, keyLocationValue : flash.ui.KeyLocation = 0, ctrlKeyValue : Bool = false, altKeyValue : Bool = false, shiftKeyValue : Bool = false) : Void;
|
|
function updateAfterEvent() : Void;
|
|
static var KEY_DOWN(default,never) : String;
|
|
static var KEY_UP(default,never) : String;
|
|
}
|