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 | 3e838a5bf95222adb9add226aa3732c3c28633bc (patch) | |
tree | b3a11523df44e927ac749c5c6aa752744cb83b5d /tests/globalHandlers.ur | |
parent | db71493ffd90e2668259efbb549f7a781c2530db (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> |