Parcourir la source

added overloads for key events returning false

Nicolas Cannasse il y a 14 ans
Parent
commit
3cbd46625c
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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 focusin( ?callb : JqEvent -> Void ) : JQuery;
 	function focusout( ?callb : JqEvent -> Void ) : JQuery;
 	function focusout( ?callb : JqEvent -> Void ) : JQuery;
 	function hover( onOver : JqEvent -> Void, ?onOut : Void -> 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;
 	function keydown( ?callb : JqEvent -> Void ) : JQuery;
+
+	@:overload(function( callb : js.JQuery.JqEvent -> Bool ) : js.JQuery {})
 	function keypress( ?callb : JqEvent -> Void ) : JQuery;
 	function keypress( ?callb : JqEvent -> Void ) : JQuery;
+
+	@:overload(function( callb : js.JQuery.JqEvent -> Bool ) : js.JQuery {})
 	function keyup( ?callb : JqEvent -> Void ) : JQuery;
 	function keyup( ?callb : JqEvent -> Void ) : JQuery;
+
 	function mousedown( ?callb : JqEvent -> Void ) : JQuery;
 	function mousedown( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseenter( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseenter( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseleave( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseleave( ?callb : JqEvent -> Void ) : JQuery;