Browse Source

keys in JqEvent

Nicolas Cannasse 14 years ago
parent
commit
5a07076738
1 changed files with 10 additions and 1 deletions
  1. 10 1
      std/js/JQuery.hx

+ 10 - 1
std/js/JQuery.hx

@@ -16,7 +16,16 @@ typedef JqEvent = {
 	var pageX : Int;
 	var pageY : Int;
 
+	var wheelDelta : Int;
+
 	// keys
+	var keyCode : Int;
+	var charCode : Int;
+	var shiftKey : Bool;
+	var ctrlKey : Bool;
+	var altKey : Bool;
+	var metaKey : Bool;
+
 	var which : Int;
 
 	// propagation
@@ -255,7 +264,7 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	//}
 
 	function iterator() : Iterator<JQuery>;
-	
+
 
 	// haxe-additions
 	inline function noBubble( events : String ) : JQuery { return (cast this).bind(events, false); }