summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ctextboxAttrs.ur6
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>