From 2e47385641f78e86a20e6ed33db9fa7c63da2029 Mon Sep 17 00:00:00 2001 From: Ziv Scully Date: Tue, 7 Apr 2015 14:18:53 -0400 Subject: New mouse events oncontextmenu, onmouseenter, and onmouseleave. --- lib/js/urweb.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/js') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index b599393b..335cb525 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -537,6 +537,10 @@ function uw_onClick(f) { uw_handler("onclick", f); } +function uw_onContextmenu(f) { + uw_handler("oncontextmenu", f); +} + function uw_onDblclick(f) { uw_handler("ondblclick", f); } @@ -545,6 +549,14 @@ function uw_onMousedown(f) { uw_handler("onmousedown", f); } +function uw_onMouseenter(f) { + uw_handler("onmouseenter", f); +} + +function uw_onMouseleave(f) { + uw_handler("onmouseleave", f); +} + function uw_onMousemove(f) { uw_handler("onmousemove", f); } -- cgit v1.2.3