annotate tests/bodyClick.ur @ 2156:d857da05f042

Allow mouse and key events for <body>
author Adam Chlipala <adam@chlipala.net>
date Thu, 02 Jul 2015 12:42:49 -0400
parents
children
rev   line source
adam@2156 1 fun main () : transaction page = return <xml>
adam@2156 2 <body onclick={fn _ => alert "You clicked the body."}
adam@2156 3 onkeyup={fn _ => alert "Key"}>
adam@2156 4 <p>Text</p>
adam@2156 5 </body>
adam@2156 6 </xml>