소스 검색

added overloads for key events returning false

Nicolas Cannasse 14 년 전
부모
커밋
3cbd46625c
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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;