summaryrefslogtreecommitdiff
path: root/tests/keyEvent.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/keyEvent.ur')
-rw-r--r--tests/keyEvent.ur7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/keyEvent.ur b/tests/keyEvent.ur
new file mode 100644
index 00000000..875e2b68
--- /dev/null
+++ b/tests/keyEvent.ur
@@ -0,0 +1,7 @@
+fun main () : transaction page = return <xml><body>
+ <ctextbox onkeypress={fn ev => alert ("KeyCode = " ^ show ev.KeyCode
+ ^ "\nCtrlKey = " ^ show ev.CtrlKey
+ ^ "\nShiftKey = " ^ show ev.ShiftKey
+ ^ "\nAltKey = " ^ show ev.AltKey
+ ^ "\nMetaKey = " ^ show ev.MetaKey)}/>
+</body></xml>