From 0cb456bbab73abfd9c08af101d1dfe71cf2d41d4 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Mon, 23 Jul 2012 08:38:39 -0400 Subject: Add more global mouse event hooks --- tests/globalHandlers.ur | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/globalHandlers.ur') 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 alert ("ScreenX = " ^ show ev.ScreenX ^ "\nShiftKey = " ^ show ev.ShiftKey)); onKeypress (fn ev => alert ("KeyCode = " ^ show ev.KeyCode ^ "\nShiftKey = " ^ show ev.ShiftKey))}/> + +fun busy () : transaction page = return + alert "OUT!"); + onMouseover (fn _ => alert "OVER!"); + onMousemove (fn _ => alert "MOVE!")}/> + -- cgit v1.2.3