summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-07-02 12:42:49 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2015-07-02 12:42:49 -0400
commitafc300a29b7e4cd868858ef5bcf9d0f9829f4b8a (patch)
tree84c32b122c45030cf86bff3b738bc742870b36eb /tests
parent9bc8214356403845bb44535127c46e6378fa1ba6 (diff)
Allow mouse and key events for <body>
Diffstat (limited to 'tests')
-rw-r--r--tests/bodyClick.ur6
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>