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
commit0cb456bbab73abfd9c08af101d1dfe71cf2d41d4 (patch)
tree5356cce65f35d10b6e2e82284d009d1eb6f445d3 /tests/globalHandlers.ur
parent2efa6af70a4b42a98360bec539e327031dc1d3dc (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>