diff lib/js/urweb.js @ 2130:e8863d9f8c59

New mouse events oncontextmenu, onmouseenter, and onmouseleave.
author Ziv Scully <ziv@mit.edu>
date Tue, 07 Apr 2015 14:18:53 -0400
parents e0843b2a636d
children 14c45a0b6362
line wrap: on
line diff
--- a/lib/js/urweb.js	Sun Mar 08 11:12:28 2015 -0400
+++ b/lib/js/urweb.js	Tue Apr 07 14:18:53 2015 -0400
@@ -537,6 +537,10 @@
     uw_handler("onclick", f);
 }
 
+function uw_onContextmenu(f) {
+    uw_handler("oncontextmenu", f);
+}
+
 function uw_onDblclick(f) {
     uw_handler("ondblclick", f);
 }
@@ -545,6 +549,14 @@
     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);
 }