summaryrefslogtreecommitdiff
path: root/tests/ctextboxAttrs.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 21:07:15 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 21:07:15 -0400
commitedd64e5edc98649b741dad91ce8c6a902492a1c7 (patch)
tree7722ce2ecf232751b9c69503698efd6661b4d04e /tests/ctextboxAttrs.ur
parent0d70a2d0f26350db55d68836a04fbefaabbd6e8a (diff)
Fix bug in handling of event attributes within client-side widgets
Diffstat (limited to 'tests/ctextboxAttrs.ur')
-rw-r--r--tests/ctextboxAttrs.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ctextboxAttrs.ur b/tests/ctextboxAttrs.ur
new file mode 100644
index 00000000..84cd087a
--- /dev/null
+++ b/tests/ctextboxAttrs.ur
@@ -0,0 +1,6 @@
+fun main () : transaction page =
+ s <- source "Initial";
+ return <xml><body>
+ <ctextbox source={s} onclick={fn ev => alert ("Clicky " ^ show ev.ScreenX)}
+ onkeypress={fn ev => alert ("Code " ^ show ev.KeyCode)}/>
+ </body></xml>