diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-07-21 10:02:53 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-07-21 10:02:53 -0400 |
commit | adfa70ae09d13b338efee432b1e0bfc73af5e104 (patch) | |
tree | b3a11523df44e927ac749c5c6aa752744cb83b5d /tests/globalHandlers.ur | |
parent | a1c7ace0c228aeac6c8fc9219505d13006d09e48 (diff) |
New event records for key and mouse handlers
Diffstat (limited to 'tests/globalHandlers.ur')
-rw-r--r-- | tests/globalHandlers.ur | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/globalHandlers.ur b/tests/globalHandlers.ur new file mode 100644 index 00000000..2b4fba7b --- /dev/null +++ b/tests/globalHandlers.ur @@ -0,0 +1,4 @@ +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> |