diff options
author | Ziv Scully <ziv@mit.edu> | 2015-04-07 14:18:53 -0400 |
---|---|---|
committer | Ziv Scully <ziv@mit.edu> | 2015-04-07 14:18:53 -0400 |
commit | 2e47385641f78e86a20e6ed33db9fa7c63da2029 (patch) | |
tree | c19f5f4f9b016c7742ea489e7763f0f075aea171 /lib/js | |
parent | 8e114ff992a3e730f2eb42095267969eebf75c36 (diff) |
New mouse events oncontextmenu, onmouseenter, and onmouseleave.
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 12 |
1 files changed, 12 insertions, 0 deletions
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); } |