summaryrefslogtreecommitdiff
path: root/tests/globalHandlers.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-23 08:38:39 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-23 08:38:39 -0400
commit49a041fd2569915d3cae43b0899dae75b32622d4 (patch)
tree5356cce65f35d10b6e2e82284d009d1eb6f445d3 /tests/globalHandlers.ur
parentf92a38c957b15bd5c4243d6aba527a1db8edc473 (diff)
Add more global mouse event hooks
Diffstat (limited to 'tests/globalHandlers.ur')
-rw-r--r--tests/globalHandlers.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/globalHandlers.ur b/tests/globalHandlers.ur
index 2b4fba7b..5ab46de8 100644
--- a/tests/globalHandlers.ur
+++ b/tests/globalHandlers.ur
@@ -2,3 +2,9 @@ fun main () : transaction page = return <xml>
<body onload={onDblclick (fn ev => alert ("ScreenX = " ^ show ev.ScreenX ^ "\nShiftKey = " ^ show ev.ShiftKey));
onKeypress (fn ev => alert ("KeyCode = " ^ show ev.KeyCode ^ "\nShiftKey = " ^ show ev.ShiftKey))}/>
</xml>
+
+fun busy () : transaction page = return <xml>
+ <body onload={onMouseout (fn _ => alert "OUT!");
+ onMouseover (fn _ => alert "OVER!");
+ onMousemove (fn _ => alert "MOVE!")}/>
+</xml>