annotate tests/keyEvent.ur @ 1813:4c61bb7acb9b
Minor js optimizations.
* flatten() now uses accumulator and join.
* reuse regexps instead of allocating new each time
author |
Vladimir Shabanov <vshabanoff@gmail.com> |
date |
Thu, 30 Aug 2012 17:58:37 +0400 |
parents |
5bc4fbf9c0fe |
children |
|
rev |
line source |
adam@1783
|
1 fun main () : transaction page = return <xml><body>
|
adam@1783
|
2 <ctextbox onkeypress={fn ev => alert ("KeyCode = " ^ show ev.KeyCode
|
adam@1783
|
3 ^ "\nCtrlKey = " ^ show ev.CtrlKey
|
adam@1783
|
4 ^ "\nShiftKey = " ^ show ev.ShiftKey
|
adam@1783
|
5 ^ "\nAltKey = " ^ show ev.AltKey
|
adam@1783
|
6 ^ "\nMetaKey = " ^ show ev.MetaKey)}/>
|
adam@1783
|
7 </body></xml>
|