Mercurial > urweb
diff tests/ctextboxAttrs.ur @ 1789:2e01a36701eb
Fix bug in handling of event attributes within client-side widgets
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 21 Jul 2012 21:07:15 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/ctextboxAttrs.ur Sat Jul 21 21:07:15 2012 -0400 @@ -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>