diff options
Diffstat (limited to 'tests/globalHandlers.ur')
-rw-r--r-- | tests/globalHandlers.ur | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/globalHandlers.ur b/tests/globalHandlers.ur new file mode 100644 index 0000000..5ab46de --- /dev/null +++ b/tests/globalHandlers.ur @@ -0,0 +1,10 @@ +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> |