comparison tests/event.ur @ 894:a3f58978ff32

Testing new events
author Adam Chlipala <adamc@hcoop.net>
date Sat, 18 Jul 2009 12:37:19 -0400
parents
children ae9e22822ec5
comparison
equal deleted inserted replaced
893:062d97847473 894:a3f58978ff32
1 fun main () =
2 s <- source "";
3 return <xml><body onresize={set s "Resize"}>
4 <button onblur={set s "Blur 1"} onfocus={set s "Focus 1"} onclick={set s "Click 1"}/>
5 <button onblur={set s "Blur 2"} onfocus={set s "Focus 2"} onclick={set s "Click 2"}/>
6 <span onclick={set s "Click"} ondblclick={set s "Double-click"}>SPAN</span>
7 <span onmousedown={set s "Mouse down"} onmouseup={set s "Mouse up"}>SPAN</span>
8 <span onmouseout={set s "Mouse out"} onmouseover={set s "Mouse over"}>SPAN</span>
9 <span onmousemove={set s "Mouse move"}>SPAN</span>
10 <button onkeydown={set s "Key down"} onkeyup={set s "Key up"}/>
11 <button onkeypress={set s "Key press"}/>
12 <br/>
13 <br/>
14
15 <dyn signal={s <- signal s; return <xml>{[s]}</xml>}/>
16 </body></xml>