Browse Source

added overloads for key events returning false

Nicolas Cannasse 14 years ago
parent
commit
3cbd46625c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      std/js/JQuery.hx

+ 7 - 0
std/js/JQuery.hx

@@ -213,9 +213,16 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	function focusin( ?callb : JqEvent -> Void ) : JQuery;
 	function focusout( ?callb : JqEvent -> Void ) : JQuery;
 	function hover( onOver : JqEvent -> Void, ?onOut : Void -> Void ) : JQuery;
+
+	@:overload(function( callb : js.JQuery.JqEvent -> Bool ) : js.JQuery {})
 	function keydown( ?callb : JqEvent -> Void ) : JQuery;
+
+	@:overload(function( callb : js.JQuery.JqEvent -> Bool ) : js.JQuery {})
 	function keypress( ?callb : JqEvent -> Void ) : JQuery;
+
+	@:overload(function( callb : js.JQuery.JqEvent -> Bool ) : js.JQuery {})
 	function keyup( ?callb : JqEvent -> Void ) : JQuery;
+
 	function mousedown( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseenter( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseleave( ?callb : JqEvent -> Void ) : JQuery;