comparison tests/keyEvent.ur @ 1783:5bc4fbf9c0fe

New event records for key and mouse handlers
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Jul 2012 10:02:53 -0400
parents
children
comparison
equal deleted inserted replaced
1782:61c7eb1d3867 1783:5bc4fbf9c0fe
1 fun main () : transaction page = return <xml><body>
2 <ctextbox onkeypress={fn ev => alert ("KeyCode = " ^ show ev.KeyCode
3 ^ "\nCtrlKey = " ^ show ev.CtrlKey
4 ^ "\nShiftKey = " ^ show ev.ShiftKey
5 ^ "\nAltKey = " ^ show ev.AltKey
6 ^ "\nMetaKey = " ^ show ev.MetaKey)}/>
7 </body></xml>