浏览代码

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;