diff options
author | Adam Chlipala <adam@chlipala.net> | 2015-07-02 12:42:49 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2015-07-02 12:42:49 -0400 |
commit | 030173645dbd08281dc59e3673f7f379619d523f (patch) | |
tree | 84c32b122c45030cf86bff3b738bc742870b36eb /tests/bodyClick.ur | |
parent | 9e06bc7fb086af288c0c6646d411dbc20bb5b628 (diff) |
Allow mouse and key events for <body>
Diffstat (limited to 'tests/bodyClick.ur')
-rw-r--r-- | tests/bodyClick.ur | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bodyClick.ur b/tests/bodyClick.ur new file mode 100644 index 00000000..9dcc64cf --- /dev/null +++ b/tests/bodyClick.ur @@ -0,0 +1,6 @@ +fun main () : transaction page = return <xml> + <body onclick={fn _ => alert "You clicked the body."} + onkeyup={fn _ => alert "Key"}> + <p>Text</p> + </body> +</xml> |