diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-07-21 21:07:15 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-07-21 21:07:15 -0400 |
commit | edd64e5edc98649b741dad91ce8c6a902492a1c7 (patch) | |
tree | 7722ce2ecf232751b9c69503698efd6661b4d04e /tests | |
parent | 0d70a2d0f26350db55d68836a04fbefaabbd6e8a (diff) |
Fix bug in handling of event attributes within client-side widgets
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ctextboxAttrs.ur | 6 |
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> |